Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_long.py @ 42762:83c8448c6de4
math.floor(<int>) now returns the argument,
so the overflow test no longer matters.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 24 Aug 2007 03:46:30 +0000 |
| parents | a53e48be6df9 |
| children | 5355337709e1 |
line wrap: on
line diff
--- a/Lib/test/test_long.py Fri Aug 24 02:51:04 2007 +0000 +++ b/Lib/test/test_long.py Fri Aug 24 03:46:30 2007 +0000 @@ -380,7 +380,9 @@ "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)
