From 28bbe4252eeccd3e7df351ce7beff5774de0b702 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 24 Aug 2007 03:46:30 +0000 Subject: math.floor() now returns the argument, so the overflow test no longer matters. --- Lib/test/test_long.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_long.py b/Lib/test/test_long.py index 140a2b0..0b67c3e 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) -- cgit v0.12