[pypy-commit] pypy SpecialisedTuples: (antocuni, mwp) test length of specialised tuples

mwp noreply at buildbot.pypy.org
Thu Nov 10 10:47:30 CET 2011


Author: Mark Pearse <mark.pearse at skynet.be>
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))
         


More information about the pypy-commit mailing list