From: Tim Peters Date: Tue, 15 Apr 2003 14:40:03 +0000 (+0000) Subject: test_range(): The C code changed to raise TypeError in one of these X-Git-Tag: v2.3c1~1187 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=299b3dffd2d4700f0212694aba98d987435cb555;p=thirdparty%2FPython%2Fcpython.git test_range(): The C code changed to raise TypeError in one of these cases, but the test still expected ValueError. Repaired that. --- diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py index 5912e85e8d56..dd718bf93dc4 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()