diff options
author | Tim Peters <tim.peters@gmail.com> | 2003-04-15 14:40:03 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2003-04-15 14:40:03 (GMT) |
commit | 299b3dffd2d4700f0212694aba98d987435cb555 (patch) | |
tree | bbcb6a3aeb14df95080a9cf31e1d03a3e59ec0de /Lib/test/test_builtin.py | |
parent | d922fa46ce0763e63c3d6a14bc89059b0eef33ea (diff) | |
download | cpython-299b3dffd2d4700f0212694aba98d987435cb555.zip cpython-299b3dffd2d4700f0212694aba98d987435cb555.tar.gz cpython-299b3dffd2d4700f0212694aba98d987435cb555.tar.bz2 |
test_range(): The C code changed to raise TypeError in one of these
cases, but the test still expected ValueError. Repaired that.
Diffstat (limited to 'Lib/test/test_builtin.py')
-rw-r--r-- | Lib/test/test_builtin.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py index 5912e85..dd718bf 100644 --- a/Lib/test/test_builtin.py +++ b/Lib/test/test_builtin.py @@ -962,7 +962,7 @@ class BuiltinTest(unittest.TestCase): # Reject floats when it would require PyLongs to represent. # (smaller floats still accepted, but deprecated) - self.assertRaises(ValueError, range, 1e100, 1e101, 1e101) + self.assertRaises(TypeError, range, 1e100, 1e101, 1e101) def test_input_and_raw_input(self): self.write_testfile() |