[pypy-commit] pypy py3k: modify the test so that it works on python3, still failing on pypy

antocuni noreply at buildbot.pypy.org
Fri Feb 24 20:13:35 CET 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r52879:bbc579e5e993
Date: 2012-02-24 18:18 +0100
http://bitbucket.org/pypy/pypy/changeset/bbc579e5e993/

Log:	modify the test so that it works on python3, still failing on pypy

diff --git a/pypy/module/__builtin__/test/test_builtin.py b/pypy/module/__builtin__/test/test_builtin.py
--- a/pypy/module/__builtin__/test/test_builtin.py
+++ b/pypy/module/__builtin__/test/test_builtin.py
@@ -361,7 +361,7 @@
         assert x[-7] == 20
         raises(IndexError, x.__getitem__, 17)
         raises(IndexError, x.__getitem__, -18)
-        raises(TypeError, x.__getitem__, slice(0,3,1))
+        assert list(x.__getitem__(slice(0,3,1))) == [0, 2, 4]
 
     def test_range_bad_args(self):
         raises(TypeError, range, '1')


More information about the pypy-commit mailing list