From: Guido van Rossum Date: Fri, 24 Aug 2007 03:46:30 +0000 (+0000) Subject: math.floor() now returns the argument, X-Git-Tag: v3.0a1~303 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=28bbe4252eeccd3e7df351ce7beff5774de0b702;p=python math.floor() now returns the argument, so the overflow test no longer matters. --- diff --git a/Lib/test/test_long.py b/Lib/test/test_long.py index 140a2b04b1..0b67c3e504 100644 --- a/Lib/test/test_long.py +++ b/Lib/test/test_long.py @@ -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)