these tests are the result of cpython's incorrect implementation

This commit is contained in:
Benjamin Peterson 2010-07-07 15:51:17 +00:00
parent c9ba8914c9
commit ba303c82d1

View file

@ -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.))