]> granicus.if.org Git - python/commitdiff
Nit: integer division should use //, not /
authorMark Dickinson <dickinsm@gmail.com>
Mon, 20 Apr 2009 21:41:04 +0000 (21:41 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Mon, 20 Apr 2009 21:41:04 +0000 (21:41 +0000)
Lib/test/test_long.py

index b41d270c18ca4b69b9c132cea2bae6c1320700ee..a20c3fcc5b5df0a23e05f0fbb90dc40fc4834805 100644 (file)
@@ -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)