Author: Antonio Cuni <[email protected]>
Branch: py3k
Changeset: r54537:c577976dd5d2
Date: 2012-04-19 15:32 +0200
http://bitbucket.org/pypy/pypy/changeset/c577976dd5d2/

Log:    classic classes are gone in py3k

diff --git a/pypy/objspace/std/test/test_index.py 
b/pypy/objspace/std/test/test_index.py
--- a/pypy/objspace/std/test/test_index.py
+++ b/pypy/objspace/std/test/test_index.py
@@ -287,20 +287,6 @@
 
         assert X()[-2:1] == (-2, 1)
 
-    def test_getitem_classic(self):
-        from sys import maxint
-        class Empty: pass
-        class GetItem(Empty):
-            def __len__(self):
-                return maxint
-            def __getitem__(self, key):
-                return key
-        x = GetItem()
-        assert x[self.pos] == self.pos
-        assert x[self.neg] == self.neg
-        assert x[self.neg:self.pos] == (-1, maxint)
-        assert x[self.neg:self.pos:1].indices(maxint) == (0, maxint, 1)
-
     def test_sequence_repeat(self):
         raises(OverflowError, lambda: "a" * self.pos)
         raises(OverflowError, lambda: "a" * self.neg)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to