]> granicus.if.org Git - python/commitdiff
math.floor(<int>) now returns the argument,
authorGuido van Rossum <guido@python.org>
Fri, 24 Aug 2007 03:46:30 +0000 (03:46 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 24 Aug 2007 03:46:30 +0000 (03:46 +0000)
so the overflow test no longer matters.

Lib/test/test_long.py

index 140a2b04b1a4262c0996c2dddd4ed6a82bf2d879..0b67c3e50414c477ecdc9480d14d6f656ee3937b 100644 (file)
@@ -380,7 +380,9 @@ class LongTest(unittest.TestCase):
                      "1. ** huge", "huge ** 1.", "1. ** mhuge", "mhuge ** 1.",
                      "math.sin(huge)", "math.sin(mhuge)",
                      "math.sqrt(huge)", "math.sqrt(mhuge)", # should do better
-                     "math.floor(huge)", "math.floor(mhuge)"]:
+                     # math.floor() of an int returns an int now
+                     ##"math.floor(huge)", "math.floor(mhuge)",
+                     ]:
 
             self.assertRaises(OverflowError, eval, test, namespace)