Kaydet (Commit) a7e734fc authored tarafından Mark Dickinson's avatar Mark Dickinson

Nit: integer division should use //, not /

üst 6736cf8d
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment