diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py index 5912e85e8d5..dd718bf93dc 100644 --- a/Lib/test/test_builtin.py +++ b/Lib/test/test_builtin.py @@ -962,7 +962,7 @@ def test_range(self): # 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()