Author: Squeaky <[email protected]>
Branch: simple-range-strategy
Changeset: r69678:0697804c87a8
Date: 2014-03-04 14:53 +0100
http://bitbucket.org/pypy/pypy/changeset/0697804c87a8/

Log:    test for fixed failure

diff --git a/pypy/objspace/std/listobject.py b/pypy/objspace/std/listobject.py
--- a/pypy/objspace/std/listobject.py
+++ b/pypy/objspace/std/listobject.py
@@ -1019,7 +1019,7 @@
         raise NotImplementedError
 
     def clone(self, w_list):
-        storage = w_list.lstorage  # lstorage is tuple/int, no need to clone
+        storage = w_list.lstorage  # lstorage is tuple, no need to clone
         w_clone = W_ListObject.from_storage_and_strategy(self.space, storage,
                                                          self)
         return w_clone
diff --git a/pypy/objspace/std/test/test_liststrategies.py 
b/pypy/objspace/std/test/test_liststrategies.py
--- a/pypy/objspace/std/test/test_liststrategies.py
+++ b/pypy/objspace/std/test/test_liststrategies.py
@@ -467,6 +467,8 @@
         l.sort(False)
         assert isinstance(l.strategy, SimpleRangeListStrategy)
 
+        assert self.space.eq_w(l.getitem(5), self.space.wrap(5))
+
     def test_keep_range(self):
         # simple list
         l = make_range_list(self.space, 1,1,5)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to