Commit ba303c82 authored by Benjamin Peterson's avatar Benjamin Peterson

these tests are the result of cpython's incorrect implementation

parent c9ba8914
......@@ -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.))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment