[pypy-svn] r29545 - pypy/dist/pypy/rpython/ootypesystem/test
antocuni at codespeak.net
antocuni at codespeak.net
Sat Jul 1 11:00:48 CEST 2006
Author: antocuni
Date: Sat Jul 1 11:00:44 2006
New Revision: 29545
Modified:
pypy/dist/pypy/rpython/ootypesystem/test/test_oorecord.py
Log:
Remove this test, because _add_fields is not supposed to be part of
the public interface.
Modified: pypy/dist/pypy/rpython/ootypesystem/test/test_oorecord.py
==============================================================================
--- pypy/dist/pypy/rpython/ootypesystem/test/test_oorecord.py (original)
+++ pypy/dist/pypy/rpython/ootypesystem/test/test_oorecord.py Sat Jul 1 11:00:44 2006
@@ -38,14 +38,3 @@
t.a = 1
t.b = 2
assert ooidentityhash(t) != ooidentityhash(t2)
-
-import py
-def test_hash():
- py.test.skip("LowLevelType.__hash__ bug waiting to be fixed")
- T1 = Record({"item0": Signed, "item1": Signed})
- T2 = Record({"item0": Signed})
-
- hash(T2) # compute the hash, it will stored in __cached_hash
- T2._add_fields({"item1": Signed}) # modify the object
- assert T1 == T2
- assert hash(T1) == hash(T2)
More information about the Pypy-commit
mailing list