[pypy-svn] r8831 - pypy/dist/pypy/module/test

arigo at codespeak.net arigo at codespeak.net
Thu Feb 3 16:22:38 CET 2005


Author: arigo
Date: Thu Feb  3 16:22:38 2005
New Revision: 8831

Modified:
   pypy/dist/pypy/module/test/test_builtin.py
Log:
Don't test xrange() attributes, as they are deprecated and no longer present
in Python 2.3 (thanks Seo).


Modified: pypy/dist/pypy/module/test/test_builtin.py
==============================================================================
--- pypy/dist/pypy/module/test/test_builtin.py	(original)
+++ pypy/dist/pypy/module/test/test_builtin.py	Thu Feb  3 16:22:38 2005
@@ -125,29 +125,26 @@
         
 
     def test_xrange_args(self):
-        x = xrange(2)
-        assert x.start == 0
-        assert x.stop == 2
-        assert x.step == 1
-
-        x = xrange(2,10,2)
-        assert x.start == 2
-        assert x.stop == 10
-        assert x.step == 2
-
-        x = xrange(2.3, 10.5, 2.4)
-        assert x.start == 2
-        assert x.stop == 10
-        assert x.step == 2
+##        # xrange() attributes are deprecated and were removed in Python 2.3.
+##        x = xrange(2)
+##        assert x.start == 0
+##        assert x.stop == 2
+##        assert x.step == 1
+
+##        x = xrange(2,10,2)
+##        assert x.start == 2
+##        assert x.stop == 10
+##        assert x.step == 2
+
+##        x = xrange(2.3, 10.5, 2.4)
+##        assert x.start == 2
+##        assert x.stop == 10
+##        assert x.step == 2
 
         raises(ValueError, xrange, 0, 1, 0)
 
     def test_xrange_up(self):
         x = xrange(2)
-        assert x.start == 0
-        assert x.stop == 2
-        assert x.step == 1
-
         iter_x = iter(x)
         assert iter_x.next() == 0
         assert iter_x.next() == 1



More information about the Pypy-commit mailing list