diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-04-20 21:41:04 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-04-20 21:41:04 (GMT) |
commit | a7e734fceeeda4cd5087a0fe2f11acf8c199962c (patch) | |
tree | 2919eea47875685ce56e0ffc22e803a96e8436df /Lib | |
parent | 6736cf8d20b67b74e8e959622132963285156242 (diff) | |
download | cpython-a7e734fceeeda4cd5087a0fe2f11acf8c199962c.zip cpython-a7e734fceeeda4cd5087a0fe2f11acf8c199962c.tar.gz cpython-a7e734fceeeda4cd5087a0fe2f11acf8c199962c.tar.bz2 |
Nit: integer division should use //, not /
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_long.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_long.py b/Lib/test/test_long.py index b41d270..a20c3fc 100644 --- a/Lib/test/test_long.py +++ b/Lib/test/test_long.py @@ -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) |