Author: Manuel Jacob
Branch: remove-list-smm-2
Changeset: r64272:ff9008f4506d
Date: 2013-05-17 20:49 +0200
http://bitbucket.org/pypy/pypy/changeset/ff9008f4506d/

Log:    Fix test_liststrategies.

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
@@ -488,15 +488,13 @@
 
     def test_weird_rangelist_bug(self):
         l = make_range_list(self.space, 1, 1, 3)
-        from pypy.objspace.std.listobject import getslice__List_ANY_ANY
         # should not raise
-        assert getslice__List_ANY_ANY(self.space, l, self.space.wrap(15), 
self.space.wrap(2222)).strategy == self.space.fromcache(EmptyListStrategy)
+        assert l.descr_getslice(self.space, self.space.wrap(15), 
self.space.wrap(2222)).strategy == self.space.fromcache(EmptyListStrategy)
 
     def test_add_to_rangelist(self):
         l1 = make_range_list(self.space, 1, 1, 3)
         l2 = W_ListObject(self.space, [self.space.wrap(4), self.space.wrap(5)])
-        from pypy.objspace.std.listobject import add__List_List
-        l3 = add__List_List(self.space, l1, l2)
+        l3 = l1.descr_add(self.space, l2)
         assert self.space.eq_w(l3, W_ListObject(self.space, 
[self.space.wrap(1), self.space.wrap(2), self.space.wrap(3), 
self.space.wrap(4), self.space.wrap(5)]))
 
     def test_unicode(self):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to