[pypy-commit] pypy py3.3: Fix test because repr of a class defined inside a function changed.
mjacob
noreply at buildbot.pypy.org
Fri Jul 17 18:11:30 CEST 2015
Author: Manuel Jacob <me at manueljacob.de>
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'>"
More information about the pypy-commit
mailing list