[Python-checkins] r80839 - python/trunk/Lib/test/test_builtin.py

mark.dickinson python-checkins at python.org
Thu May 6 00:42:52 CEST 2010


Author: mark.dickinson
Date: Thu May  6 00:42:51 2010
New Revision: 80839

Log:
Issue #1533:  test_range in test_builtin: fix test comment and add test
for rejection of small floats.  Thanks Alexander Belopolsky.


Modified:
   python/trunk/Lib/test/test_builtin.py

Modified: python/trunk/Lib/test/test_builtin.py
==============================================================================
--- python/trunk/Lib/test/test_builtin.py	(original)
+++ python/trunk/Lib/test/test_builtin.py	Thu May  6 00:42:51 2010
@@ -1070,8 +1070,8 @@
             __hash__ = None # Invalid cmp makes this unhashable
         self.assertRaises(RuntimeError, range, a, a + 1, badzero(1))
 
-        # Reject floats when it would require PyLongs to represent.
-        # (smaller floats still accepted, but deprecated)
+        # Reject floats.
+        self.assertRaises(TypeError, range, 1., 1., 1.)
         self.assertRaises(TypeError, range, 1e100, 1e101, 1e101)
 
         self.assertRaises(TypeError, range, 0, "spam")


More information about the Python-checkins mailing list