summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2010-01-21 19:58:41 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2010-01-21 19:58:41 (GMT)
commita3112d146208d6db0dbb7abd50368a4ff6afe54c (patch)
tree89ec946b3687f5402862df4c05b966821da55061
parent5a633488d4b037619970d657bf51a58db4ece809 (diff)
downloadcpython-a3112d146208d6db0dbb7abd50368a4ff6afe54c.zip
cpython-a3112d146208d6db0dbb7abd50368a4ff6afe54c.tar.gz
cpython-a3112d146208d6db0dbb7abd50368a4ff6afe54c.tar.bz2
Use // for floor division.
-rw-r--r--Lib/test/test_strtod.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_strtod.py b/Lib/test/test_strtod.py
index e533499..c756266 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):