[pypy-commit] pypy set-strategies: Add more tests that don't pass.

arigo noreply at buildbot.pypy.org
Mon Mar 26 14:40:11 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: set-strategies
Changeset: r53986:31898406b59e
Date: 2012-03-26 14:35 +0200
http://bitbucket.org/pypy/pypy/changeset/31898406b59e/

Log:	Add more tests that don't pass.

diff --git a/pypy/objspace/std/test/test_listobject.py b/pypy/objspace/std/test/test_listobject.py
--- a/pypy/objspace/std/test/test_listobject.py
+++ b/pypy/objspace/std/test/test_listobject.py
@@ -486,6 +486,14 @@
         list.__init__(l, ['a', 'b', 'c'])
         assert l is l0
         assert l == ['a', 'b', 'c']
+        list.__init__(l)
+        assert l == []
+
+    def test_explicit_new_init_more_cases(self):
+        for assignment in [[], (), [3], ["foo"]]:
+            l = [1, 2]
+            l.__init__(assignment)
+            assert l == list(assignment)
 
     def test_extend_list(self):
         l = l0 = [1]


More information about the pypy-commit mailing list