summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_repr.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2002-05-02 18:40:31 (GMT)
committerFred Drake <fdrake@acm.org>2002-05-02 18:40:31 (GMT)
commite08fda912fc6fe66f185524bd1ad0585bcadeef7 (patch)
tree5f30a92e92dfc0b7d0bed91c9eaea2a23021b1a1 /Lib/test/test_repr.py
parenta030c768afd2cf69ce15c449c9c4eadd5a8b3fbe (diff)
downloadcpython-e08fda912fc6fe66f185524bd1ad0585bcadeef7.zip
cpython-e08fda912fc6fe66f185524bd1ad0585bcadeef7.tar.gz
cpython-e08fda912fc6fe66f185524bd1ad0585bcadeef7.tar.bz2
Remove all tests that rely on deprecated-in-2.2 features of xrange objects.
"What's New in Python 2.2" documented that these would be removed in Python 2.3.
Diffstat (limited to 'Lib/test/test_repr.py')
-rw-r--r--Lib/test/test_repr.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/Lib/test/test_repr.py b/Lib/test/test_repr.py
index 1d7ea85..f8aad94 100644
--- a/Lib/test/test_repr.py
+++ b/Lib/test/test_repr.py
@@ -110,14 +110,6 @@ class ReprTests(unittest.TestCase):
eq(repr(xrange(1)), 'xrange(1)')
eq(repr(xrange(1, 2)), 'xrange(1, 2)')
eq(repr(xrange(1, 2, 3)), 'xrange(1, 4, 3)')
- # Turn off warnings for deprecated multiplication
- warnings.filterwarnings('ignore',
- r'xrange object multiplication is deprecated',
- DeprecationWarning, module=ReprTests.__module__)
- warnings.filterwarnings('ignore',
- r"PyRange_New's 'repetitions' argument is deprecated",
- DeprecationWarning, module=ReprTests.__module__)
- eq(repr(xrange(1) * 3), '(xrange(1) * 3)')
def test_nesting(self):
eq = self.assertEquals