[pypy-commit] pypy stdlib-2.7.3: The repr of dictproxy is really an implementation detail

amauryfa noreply at buildbot.pypy.org
Thu Jun 14 23:15:04 CEST 2012


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: stdlib-2.7.3
Changeset: r55667:e56eabddced1
Date: 2012-06-14 08:47 +0200
http://bitbucket.org/pypy/pypy/changeset/e56eabddced1/

Log:	The repr of dictproxy is really an implementation detail

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
@@ -4617,7 +4617,8 @@
         self.C = C
 
     def test_repr(self):
-        self.assertIn('dict_proxy({', repr(vars(self.C)))
+        if test_support.check_impl_detail():
+            self.assertIn('dict_proxy({', repr(vars(self.C)))
         self.assertIn("'meth':", repr(vars(self.C)))
 
     def test_iter_keys(self):


More information about the pypy-commit mailing list