[pypy-svn] r59328 - pypy/trunk/pypy/objspace/std/test

iko at codespeak.net iko at codespeak.net
Thu Oct 23 01:34:47 CEST 2008


Author: iko
Date: Thu Oct 23 01:34:46 2008
New Revision: 59328

Modified:
   pypy/trunk/pypy/objspace/std/test/test_tupleobject.py
Log:
test for previous checkin



Modified: pypy/trunk/pypy/objspace/std/test/test_tupleobject.py
==============================================================================
--- pypy/trunk/pypy/objspace/std/test/test_tupleobject.py	(original)
+++ pypy/trunk/pypy/objspace/std/test/test_tupleobject.py	Thu Oct 23 01:34:46 2008
@@ -283,6 +283,12 @@
         t = (1,2,3)
         assert (t * 1) is t
 
+    def test_mul_subtype(self):
+        class T(tuple): pass
+        t = T([1,2,3])
+        assert (t * 1) is not t
+        assert (t * 1) == t
+
     def test_getslice(self):
         assert (5,2,3)[1:2] == (2,)
 



More information about the Pypy-commit mailing list