From a3112d146208d6db0dbb7abd50368a4ff6afe54c Mon Sep 17 00:00:00 2001 From: Mark Dickinson Date: Thu, 21 Jan 2010 19:58:41 +0000 Subject: [PATCH] Use // for floor division. --- Lib/test/test_strtod.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_strtod.py b/Lib/test/test_strtod.py index e5334997cf..c7562669a0 100644 --- a/Lib/test/test_strtod.py +++ b/Lib/test/test_strtod.py @@ -104,9 +104,9 @@ class StrtodTests(unittest.TestCase): # 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): -- 2.40.0