mirror of
https://github.com/python/cpython.git
synced 2025-09-14 20:56:06 +00:00
Nit: integer division should use //, not /
This commit is contained in:
parent
6736cf8d20
commit
a7e734fcee
1 changed files with 1 additions and 1 deletions
|
@ -681,7 +681,7 @@ class LongTest(unittest.TestCase):
|
|||
# behaviour near extremes of floating-point range
|
||||
long_dbl_max = long(DBL_MAX)
|
||||
top_power = 2**DBL_MAX_EXP
|
||||
halfway = (long_dbl_max + top_power)/2
|
||||
halfway = (long_dbl_max + top_power)//2
|
||||
self.assertEqual(float(long_dbl_max), DBL_MAX)
|
||||
self.assertEqual(float(long_dbl_max+1), DBL_MAX)
|
||||
self.assertEqual(float(halfway-1), DBL_MAX)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue