[pypy-svn] r71455 - pypy/branch/gc-better-hash/pypy/translator/c/test

arigo at codespeak.net arigo at codespeak.net
Wed Feb 24 17:34:52 CET 2010


Author: arigo
Date: Wed Feb 24 17:34:51 2010
New Revision: 71455

Modified:
   pypy/branch/gc-better-hash/pypy/translator/c/test/test_newgc.py
Log:
Improve the test.


Modified: pypy/branch/gc-better-hash/pypy/translator/c/test/test_newgc.py
==============================================================================
--- pypy/branch/gc-better-hash/pypy/translator/c/test/test_newgc.py	(original)
+++ pypy/branch/gc-better-hash/pypy/translator/c/test/test_newgc.py	Wed Feb 24 17:34:51 2010
@@ -1033,6 +1033,7 @@
                 hashes.append(compute_identity_hash(obj))
             unique = {}
             for i in range(len(objects)):
+                assert compute_identity_hash(objects[i]) == hashes[i]
                 unique[hashes[i]] = None
             return len(unique)
         return fn



More information about the Pypy-commit mailing list