summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-07-05 14:49:21 (GMT)
committerGuido van Rossum <guido@python.org>2001-07-05 14:49:21 (GMT)
commitc09cf33658a47876366c3377e4e0c74c23d4a430 (patch)
treef9eec55ea86d794c6e5d7fb0256e74c6c8c359b5 /Lib/test
parent643d3916d5245afcc6d1031ef7bd77ac13cc33f1 (diff)
downloadcpython-c09cf33658a47876366c3377e4e0c74c23d4a430.zip
cpython-c09cf33658a47876366c3377e4e0c74c23d4a430.tar.gz
cpython-c09cf33658a47876366c3377e4e0c74c23d4a430.tar.bz2
Rip out tests for xrange() features no longer supported.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_b2.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/Lib/test/test_b2.py b/Lib/test/test_b2.py
index 324d02f..cfc461c 100644
--- a/Lib/test/test_b2.py
+++ b/Lib/test/test_b2.py
@@ -254,20 +254,6 @@ if tuple(xrange(10)) != tuple(range(10)): raise TestFailed, 'xrange(10)'
if tuple(xrange(5,10)) != tuple(range(5,10)): raise TestFailed, 'xrange(5,10)'
if tuple(xrange(0,10,2)) != tuple(range(0,10,2)):
raise TestFailed, 'xrange(0,10,2)'
-# regression tests for SourceForge bug #121695
-def _range_test(r):
- verify(r.start != r.stop, 'Test not valid for passed-in xrange object.')
- if r.stop in r:
- raise TestFailed, 'r.stop in ' + `r`
- if r.stop-r.step not in r:
- raise TestFailed, 'r.stop-r.step not in ' + `r`
- if r.start not in r:
- raise TestFailed, 'r.start not in ' + `r`
- if r.stop+r.step in r:
- raise TestFailed, 'r.stop+r.step in ' + `r`
-_range_test(xrange(10))
-_range_test(xrange(9, -1, -1))
-_range_test(xrange(0, 10, 2))
print 'zip'
a = (1, 2, 3)