Author: Manuel Jacob <[email protected]>
Branch: py3.3
Changeset: r78586:7305d753afde
Date: 2015-07-17 12:37 +0200
http://bitbucket.org/pypy/pypy/changeset/7305d753afde/

Log:    Fix test because repr of a class defined inside a function changed.

diff --git a/pypy/objspace/std/test/test_typeobject.py 
b/pypy/objspace/std/test/test_typeobject.py
--- a/pypy/objspace/std/test/test_typeobject.py
+++ b/pypy/objspace/std/test/test_typeobject.py
@@ -678,7 +678,7 @@
         globals()['__name__'] = 'a'
         class A(object):
             pass
-        assert repr(A) == "<class 'a.A'>"
+        assert repr(A) == "<class 'a.test_repr.<locals>.A'>"
         A.__module__ = 123
         assert repr(A) == "<class 'A'>"
         assert repr(type(type)) == "<class 'type'>" 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to