mirror of
https://github.com/python/cpython.git
synced 2025-09-19 15:10:58 +00:00
Use // for floor division.
This commit is contained in:
parent
5a633488d4
commit
a3112d1462
1 changed files with 2 additions and 2 deletions
|
@ -104,9 +104,9 @@ class StrtodTests(unittest.TestCase):
|
||||||
# exact halfway cases with a small number of significant digits
|
# exact halfway cases with a small number of significant digits
|
||||||
for k in 0, 5, 10, 15, 20:
|
for k in 0, 5, 10, 15, 20:
|
||||||
# upper = smallest integer >= 2**54/5**k
|
# 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 = smallest odd number >= 2**53/5**k
|
||||||
lower = -(-2**53/5**k)
|
lower = -(-2**53//5**k)
|
||||||
if lower % 2 == 0:
|
if lower % 2 == 0:
|
||||||
lower += 1
|
lower += 1
|
||||||
for i in xrange(10 * TEST_SIZE):
|
for i in xrange(10 * TEST_SIZE):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue