[pypy-commit] pypy dict-strategies: with dict-strategies object identity is not preserved

l.diekmann noreply at buildbot.pypy.org
Wed Jun 29 13:15:59 CEST 2011


Author: Lukas Diekmann <lukas.diekmann at uni-duesseldorf.de>
Branch: dict-strategies
Changeset: r45180:b2211183df54
Date: 2011-06-29 13:22 +0200
http://bitbucket.org/pypy/pypy/changeset/b2211183df54/

Log:	with dict-strategies object identity is not preserved

diff --git a/lib-python/modified-2.7/test/test_weakref.py b/lib-python/modified-2.7/test/test_weakref.py
--- a/lib-python/modified-2.7/test/test_weakref.py
+++ b/lib-python/modified-2.7/test/test_weakref.py
@@ -993,7 +993,7 @@
         self.assertTrue(len(weakdict) == 2)
         k, v = weakdict.popitem()
         self.assertTrue(len(weakdict) == 1)
-        if k is key1:
+        if k == key1:
             self.assertTrue(v is value1)
         else:
             self.assertTrue(v is value2)


More information about the pypy-commit mailing list