From: Mark Dickinson Date: Mon, 20 Apr 2009 21:41:04 +0000 (+0000) Subject: Nit: integer division should use //, not / X-Git-Tag: v2.7a1~1443 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a7e734fceeeda4cd5087a0fe2f11acf8c199962c;p=python Nit: integer division should use //, not / --- diff --git a/Lib/test/test_long.py b/Lib/test/test_long.py index b41d270c18..a20c3fcc5b 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)