[pypy-svn] r39771 - in pypy/dist/pypy/objspace/std: . test
gbrandl at codespeak.net
gbrandl at codespeak.net
Sat Mar 3 12:10:12 CET 2007
Author: gbrandl
Date: Sat Mar 3 12:10:10 2007
New Revision: 39771
Modified:
pypy/dist/pypy/objspace/std/listmultiobject.py
pypy/dist/pypy/objspace/std/test/test_listobject.py
Log:
Fix the test.
Modified: pypy/dist/pypy/objspace/std/listmultiobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/listmultiobject.py (original)
+++ pypy/dist/pypy/objspace/std/listmultiobject.py Sat Mar 3 12:10:10 2007
@@ -472,7 +472,7 @@
def getitem_slice_step(self, start, stop, step, slicelength):
assert 0 <= start < len(self.strlist)
- # stop is -1 e.g. for [2:-1:-1]
+ # stop is -1 e.g. for [2::-1]
assert -1 <= stop <= len(self.strlist)
assert slicelength > 0
res = [""] * slicelength
Modified: pypy/dist/pypy/objspace/std/test/test_listobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_listobject.py (original)
+++ pypy/dist/pypy/objspace/std/test/test_listobject.py Sat Mar 3 12:10:10 2007
@@ -514,7 +514,6 @@
assert l[-1::-5] == l
l.extend(['a', 'b'])
assert l[::-1] == ['b', 'a', '']
- assert l[:-1:-1] == ['b', 'a', '']
def test_delall(self):
l = l0 = [1,2,3]
More information about the Pypy-commit
mailing list