[pypy-svn] r71219 - pypy/trunk/pypy/objspace/test

benjamin at codespeak.net benjamin at codespeak.net
Sun Feb 14 01:38:50 CET 2010


Author: benjamin
Date: Sun Feb 14 01:38:49 2010
New Revision: 71219

Modified:
   pypy/trunk/pypy/objspace/test/test_descriptor.py
Log:
be more robust when the long hash changes

Modified: pypy/trunk/pypy/objspace/test/test_descriptor.py
==============================================================================
--- pypy/trunk/pypy/objspace/test/test_descriptor.py	(original)
+++ pypy/trunk/pypy/objspace/test/test_descriptor.py	Sun Feb 14 01:38:49 2010
@@ -125,7 +125,7 @@
         class F: # can return long
             def __hash__(self):
                 return long(2**33)
-        assert hash(F()) == 2 # 2.5 behavior
+        assert hash(F()) == hash(2**33) # 2.5 behavior
 
         class G:
             def __hash__(self):



More information about the Pypy-commit mailing list