Author: Squeaky <[email protected]>
Branch: simple-range-strategy
Changeset: r69680:d0f90833cf28
Date: 2014-03-04 17:31 +0100
http://bitbucket.org/pypy/pypy/changeset/d0f90833cf28/

Log:    want more test case

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
@@ -469,6 +469,10 @@
 
         assert self.space.eq_w(l.getitem(5), self.space.wrap(5))
 
+        l = make_range_list(self.space, 0, 1, 1)
+        assert self.space.eq_w(l.pop_end(), self.space.wrap(0))
+        assert isinstance(l.strategy, EmptyListStrategy)
+
     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