[Python-checkins] r77672 - python/trunk/Lib/test/test_strtod.py

mark.dickinson python-checkins at python.org
Thu Jan 21 20:58:42 CET 2010


Author: mark.dickinson
Date: Thu Jan 21 20:58:41 2010
New Revision: 77672

Log:
Use // for floor division.

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

Modified: python/trunk/Lib/test/test_strtod.py
==============================================================================
--- python/trunk/Lib/test/test_strtod.py	(original)
+++ python/trunk/Lib/test/test_strtod.py	Thu Jan 21 20:58:41 2010
@@ -104,9 +104,9 @@
         # exact halfway cases with a small number of significant digits
         for k in 0, 5, 10, 15, 20:
             # upper = smallest integer >= 2**54/5**k
-            upper = -(-2**54/5**k)
+            upper = -(-2**54//5**k)
             # lower = smallest odd number >= 2**53/5**k
-            lower = -(-2**53/5**k)
+            lower = -(-2**53//5**k)
             if lower % 2 == 0:
                 lower += 1
             for i in xrange(10 * TEST_SIZE):


More information about the Python-checkins mailing list