Author: Amaury Forgeot d'Arc <[email protected]>
Branch: stdlib-2.7.3
Changeset: r55668:732fb3985725
Date: 2012-06-14 23:13 +0200
http://bitbucket.org/pypy/pypy/changeset/732fb3985725/
Log: Fix test according to future CPython2.7.4. PyPy already did the
right thing.
diff --git a/lib-python/2.7/test/test_descr.py
b/lib-python/2.7/test/test_descr.py
--- a/lib-python/2.7/test/test_descr.py
+++ b/lib-python/2.7/test/test_descr.py
@@ -4607,7 +4607,10 @@
pass
Foo.__repr__ = Foo.__str__
foo = Foo()
- str(foo)
+ # Behavior will change in CPython 2.7.4.
+ # PyPy already does the right thing here.
+ self.assertRaises(RuntimeError, str, foo)
+ self.assertRaises(RuntimeError, repr, foo)
class DictProxyTests(unittest.TestCase):
def setUp(self):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit