diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2010-01-01 17:27:30 +0000 |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2010-01-01 17:27:30 +0000 |
commit | 1b34d2552c2cb2369130291a8a9ae973753b4072 (patch) | |
tree | 5bfcf8b49745280e0a92a49ef2102d81c3674b68 /Lib/test/test_xrange.py | |
parent | edfe72f66fd789d65b0c7125540c08d3e98a901e (diff) | |
download | cpython-git-1b34d2552c2cb2369130291a8a9ae973753b4072.tar.gz |
Issue #5080: turn the DeprecationWarning from float arguments passed
to integer PyArg_Parse* format codes into a TypeError. Add a
DeprecationWarning for floats passed with the 'L' format code, which
didn't previously have a warning.
Diffstat (limited to 'Lib/test/test_xrange.py')
-rw-r--r-- | Lib/test/test_xrange.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_xrange.py b/Lib/test/test_xrange.py index 8e654772d9..9268c76506 100644 --- a/Lib/test/test_xrange.py +++ b/Lib/test/test_xrange.py @@ -81,7 +81,7 @@ class XrangeTest(unittest.TestCase): self.assertRaises(TypeError, xrange, 1, 2, 3, 4) self.assertRaises(ValueError, xrange, 1, 2, 0) - self.assertRaises(OverflowError, xrange, 1e100, 1e101, 1e101) + self.assertRaises(OverflowError, xrange, 10**100, 10**101, 10**101) self.assertRaises(TypeError, xrange, 0, "spam") self.assertRaises(TypeError, xrange, 0, 42, "spam") |