[pypy-svn] pypy new-dict-proxy: pypy's type dicts *can* be safely modified

cfbolz commits-noreply at bitbucket.org
Mon Apr 18 14:09:29 CEST 2011


Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch: new-dict-proxy
Changeset: r43444:bea50689532e
Date: 2011-04-17 09:38 +0200
http://bitbucket.org/pypy/pypy/changeset/bea50689532e/

Log:	pypy's type dicts *can* be safely modified

diff --git a/lib-python/modified-2.7.0/test/test_descr.py b/lib-python/modified-2.7.0/test/test_descr.py
--- a/lib-python/modified-2.7.0/test/test_descr.py
+++ b/lib-python/modified-2.7.0/test/test_descr.py
@@ -3189,7 +3189,8 @@
             except TypeError:
                 pass
             else:
-                self.fail("%r's __dict__ can be modified" % cls)
+                if test_support.check_impl_detail(pypy=False):
+                    self.fail("%r's __dict__ can be modified" % cls)
 
         # Modules also disallow __dict__ assignment
         class Module1(types.ModuleType, Base):


More information about the Pypy-commit mailing list