math.floor(<int>) now returns the argument,

so the overflow test no longer matters.
This commit is contained in:
Guido van Rossum 2007-08-24 03:46:30 +00:00
parent 9cfc62c44f
commit 28bbe4252e

View 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)