diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-07-07 15:51:17 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-07-07 15:51:17 (GMT) |
commit | ba303c82d117d81101308ee241dab02cf8864169 (patch) | |
tree | 6ab0343bbfe897b8d1430f301593ca88ca2912fe /Lib | |
parent | c9ba8914c95f8a8d64033ad29acb32a8779c76c0 (diff) | |
download | cpython-ba303c82d117d81101308ee241dab02cf8864169.zip cpython-ba303c82d117d81101308ee241dab02cf8864169.tar.gz cpython-ba303c82d117d81101308ee241dab02cf8864169.tar.bz2 |
these tests are the result of cpython's incorrect implementation
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_math.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/Lib/test/test_math.py b/Lib/test/test_math.py index 680c6ac..7d49ed9 100644 --- a/Lib/test/test_math.py +++ b/Lib/test/test_math.py @@ -879,11 +879,6 @@ class MathTests(unittest.TestCase): self.assertRaises((AttributeError, TypeError), math.trunc, TestNoTrunc()) - t = TestNoTrunc() - t.__trunc__ = lambda *args: args - self.assertEquals((), math.trunc(t)) - self.assertRaises(TypeError, math.trunc, t, 0) - def testIsnan(self): self.assertTrue(math.isnan(float("nan"))) self.assertTrue(math.isnan(float("inf")* 0.)) |