diff options
author | Jeffrey Yasskin <jyasskin@gmail.com> | 2008-01-05 08:47:13 +0000 |
---|---|---|
committer | Jeffrey Yasskin <jyasskin@gmail.com> | 2008-01-05 08:47:13 +0000 |
commit | 9871d8fe22566acf68bf336d04d3a1dbd51f3269 (patch) | |
tree | 89540b4ff5f893e36c916534be2f07b5a7166fc1 /Lib/test/test_long.py | |
parent | f7476c4d463b5770b98d980bcd9bff3db981445d (diff) | |
download | cpython-git-9871d8fe22566acf68bf336d04d3a1dbd51f3269.tar.gz |
Continue rolling back pep-3141 changes that changed behavior from 2.5. This
round included:
* Revert round to its 2.6 behavior (half away from 0).
* Because round, floor, and ceil always return float again, it's no
longer necessary to have them delegate to __xxx___, so I've ripped
that out of their implementations and the Real ABC. This also helps
in implementing types that work in both 2.6 and 3.0: you return int
from the __xxx__ methods, and let it get enabled by the version
upgrade.
* Make pow(-1, .5) raise a ValueError again.
Diffstat (limited to 'Lib/test/test_long.py')
-rw-r--r-- | Lib/test/test_long.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/test/test_long.py b/Lib/test/test_long.py index d74535040a..1709de5b0d 100644 --- a/Lib/test/test_long.py +++ b/Lib/test/test_long.py @@ -385,9 +385,7 @@ 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() of an int returns an int now - ##"math.floor(huge)", "math.floor(mhuge)", - ]: + "math.floor(huge)", "math.floor(mhuge)"]: self.assertRaises(OverflowError, eval, test, namespace) |