[pypy-svn] r49727 - pypy/branch/interplevel-oldstyle-classes/pypy/module/__builtin__/test

cfbolz at codespeak.net cfbolz at codespeak.net
Thu Dec 13 17:17:55 CET 2007


Author: cfbolz
Date: Thu Dec 13 17:17:54 2007
New Revision: 49727

Modified:
   pypy/branch/interplevel-oldstyle-classes/pypy/module/__builtin__/test/test_classobj.py
Log:
test slicing too


Modified: pypy/branch/interplevel-oldstyle-classes/pypy/module/__builtin__/test/test_classobj.py
==============================================================================
--- pypy/branch/interplevel-oldstyle-classes/pypy/module/__builtin__/test/test_classobj.py	(original)
+++ pypy/branch/interplevel-oldstyle-classes/pypy/module/__builtin__/test/test_classobj.py	Thu Dec 13 17:17:54 2007
@@ -216,6 +216,12 @@
         assert len(a) == 0
         assert not a
         assert bool(a) == False
+        a = A()
+        assert a[1:3] == [2, 3]
+        a[1:3] = [1, 2, 3]
+        assert a.list == [1, 1, 2, 3, 4, 5]
+        del a[1:4]
+        assert a.list == [1, 4, 5]
 
     def test_len_errors(self):
         class A:



More information about the Pypy-commit mailing list