[pypy-svn] pypy fast-forward: With CPython, popitem() on two dictionaries built with the same items

amauryfa commits-noreply at bitbucket.org
Tue Jan 4 01:46:12 CET 2011


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: fast-forward
Changeset: r40368:3e97a072a447
Date: 2011-01-04 01:48 +0100
http://bitbucket.org/pypy/pypy/changeset/3e97a072a447/

Log:	With CPython, popitem() on two dictionaries built with the same
	items will yield items in the same order. Consider this as an
	implementation detail.

diff --git a/lib-python/modified-2.7.0/test/test_dict.py b/lib-python/modified-2.7.0/test/test_dict.py
--- a/lib-python/modified-2.7.0/test/test_dict.py
+++ b/lib-python/modified-2.7.0/test/test_dict.py
@@ -319,7 +319,8 @@
                     self.assertEqual(va, int(ka))
                     kb, vb = tb = b.popitem()
                     self.assertEqual(vb, int(kb))
-                    self.assertFalse(copymode < 0 and ta != tb)
+                    if test_support.check_impl_detail():
+                        self.assertFalse(copymode < 0 and ta != tb)
                 self.assertFalse(a)
                 self.assertFalse(b)
 


More information about the Pypy-commit mailing list