[pypy-svn] r78580 - pypy/trunk/lib-python/modified-2.5.2/test

arigo at codespeak.net arigo at codespeak.net
Sun Oct 31 10:54:36 CET 2010


Author: arigo
Date: Sun Oct 31 10:54:33 2010
New Revision: 78580

Modified:
   pypy/trunk/lib-python/modified-2.5.2/test/mapping_tests.py
Log:
Mark this as an implementation detail.  This is a copy of test_dict. :-(


Modified: pypy/trunk/lib-python/modified-2.5.2/test/mapping_tests.py
==============================================================================
--- pypy/trunk/lib-python/modified-2.5.2/test/mapping_tests.py	(original)
+++ pypy/trunk/lib-python/modified-2.5.2/test/mapping_tests.py	Sun Oct 31 10:54:33 2010
@@ -1,6 +1,7 @@
 # tests common to dict and UserDict
 import unittest
 import UserDict
+from test import test_support
 
 
 class BasicTestMappingProtocol(unittest.TestCase):
@@ -525,7 +526,8 @@
                     self.assertEqual(va, int(ka))
                     kb, vb = tb = b.popitem()
                     self.assertEqual(vb, int(kb))
-                    self.assert_(not(copymode < 0 and ta != tb))
+                    if test_support.check_impl_detail():
+                        self.assert_(not(copymode < 0 and ta != tb))
                 self.assert_(not a)
                 self.assert_(not b)
 



More information about the Pypy-commit mailing list