summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-08-24 03:46:30 (GMT)
committerGuido van Rossum <guido@python.org>2007-08-24 03:46:30 (GMT)
commit28bbe4252eeccd3e7df351ce7beff5774de0b702 (patch)
treef3d156ab82f4ef17b27cc4cc9c839b8877831fab /Lib/test
parent9cfc62c44f6532b90ce3de700cff680644cb2df6 (diff)
downloadcpython-28bbe4252eeccd3e7df351ce7beff5774de0b702.zip
cpython-28bbe4252eeccd3e7df351ce7beff5774de0b702.tar.gz
cpython-28bbe4252eeccd3e7df351ce7beff5774de0b702.tar.bz2
math.floor(<int>) now returns the argument,
so the overflow test no longer matters.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_long.py4
1 files changed, 3 insertions, 1 deletions
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)