Author: Kunal Grover <kunalgrove...@gmail.com>
Branch: py3.3-hashfix
Changeset: r83699:605e04e0e53d
Date: 2016-02-19 03:50 +0530
http://bitbucket.org/pypy/pypy/changeset/605e04e0e53d/

Log:    Added test

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
@@ -177,6 +177,11 @@
 
         assert hash(a) == hash((1, 2)) == hash((1.0, 2.0)) == hash((1.0, 2))
 
+        d = tuple([-1, 1])
+        e = (-1, 1)
+        assert d == e
+        assert hash(d) == hash(e)
+
     def test_getitem(self):
         t = (5, 3)
         assert (t)[0] == 5
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to