mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
math.floor(<int>) now returns the argument,
so the overflow test no longer matters.
This commit is contained in:
parent
9cfc62c44f
commit
28bbe4252e
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue