[pypy-commit] pypy stdlib-2.7.3: Fix test according to future CPython2.7.4. PyPy already did the right thing.
amauryfa
noreply at buildbot.pypy.org
Thu Jun 14 23:15:05 CEST 2012
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
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):
More information about the pypy-commit
mailing list