mirror of
https://github.com/python/cpython.git
synced 2024-12-15 12:54:31 +08:00
test_range(): The C code changed to raise TypeError in one of these
cases, but the test still expected ValueError. Repaired that.
This commit is contained in:
parent
d922fa46ce
commit
299b3dffd2
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user