[pypy-svn] r54079 - pypy/branch/2.5-features/pypy/objspace/test
bgola at codespeak.net
bgola at codespeak.net
Thu Apr 24 08:10:36 CEST 2008
Author: bgola
Date: Thu Apr 24 08:10:34 2008
New Revision: 54079
Modified:
pypy/branch/2.5-features/pypy/objspace/test/test_descriptor.py
Log:
test for new hash() behavior
Modified: pypy/branch/2.5-features/pypy/objspace/test/test_descriptor.py
==============================================================================
--- pypy/branch/2.5-features/pypy/objspace/test/test_descriptor.py (original)
+++ pypy/branch/2.5-features/pypy/objspace/test/test_descriptor.py Thu Apr 24 08:10:34 2008
@@ -71,3 +71,7 @@
def __hash__(self):
return "something"
raises(TypeError, hash, E())
+ class F: # can return long
+ def __hash__(self):
+ return long(1)
+ assert hash(F()) == long(1)
More information about the Pypy-commit
mailing list