Author: Mark Pearse <[email protected]>
Branch: SpecialisedTuples
Changeset: r49086:48af40650402
Date: 2011-11-05 16:09 +0100
http://bitbucket.org/pypy/pypy/changeset/48af40650402/
Log: (antocuni, mwp) test length of specialised tuples
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
@@ -55,6 +55,9 @@
def test_specialisedtuple(self):
assert self.isspecialised((42,43))
+ def test_len(self):
+ assert len((42,43)) == 2
+
def test_notspecialisedtuple(self):
assert not self.isspecialised((42,43,44))
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit