Author: Mark Pearse <[email protected]>
Branch: SpecialisedTuples
Changeset: r49084:8e818988cae7
Date: 2011-11-04 18:25 +0100
http://bitbucket.org/pypy/pypy/changeset/8e818988cae7/

Log:    (antocuni, mwp) app-level eq and hash test pass

diff --git a/pypy/objspace/std/test/test_specialisedtupleobject.py 
b/pypy/objspace/std/test/test_specialisedtupleobject.py
--- a/pypy/objspace/std/test/test_specialisedtupleobject.py
+++ b/pypy/objspace/std/test/test_specialisedtupleobject.py
@@ -72,7 +72,6 @@
         assert (1,2,3)[0:2:1] == (1,2)
 
     def test_eq(self):
-        skip('in progress')
         a = (1,2)
         b = (1,2)
         assert a == b
@@ -81,20 +80,11 @@
         assert a != c
 
     def test_hash(self):
-        skip('in progress')
-        a = (1,)
-        b = (1,)
+        a = (1,2)
+        b = (1,2)
         assert hash(a) == hash(b)
 
-        a = ('1',)
-        b = ('1',)
-        assert hash(a) == hash(b)
-
-        a = (1.1,)
-        b = (1.1,)
-        assert hash(a) == hash(b)
-
-        c = (2,)
+        c = (2,4)
         assert hash(a) != hash(c)
 
         
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to