]> granicus.if.org Git - python/commitdiff
test_range(): The C code changed to raise TypeError in one of these
authorTim Peters <tim.peters@gmail.com>
Tue, 15 Apr 2003 14:40:03 +0000 (14:40 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 15 Apr 2003 14:40:03 +0000 (14:40 +0000)
cases, but the test still expected ValueError.  Repaired that.

Lib/test/test_builtin.py

index 5912e85e8d56930bff7f65bfc8d4e8800016b59f..dd718bf93dc49af354b92f2b7f98d4c8a755d6de 100644 (file)
@@ -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()