From: Benjamin Peterson Date: Wed, 7 Jul 2010 15:51:17 +0000 (+0000) Subject: these tests are the result of cpython's incorrect implementation X-Git-Tag: v2.7.1rc1~638 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ba303c82d117d81101308ee241dab02cf8864169;p=thirdparty%2FPython%2Fcpython.git these tests are the result of cpython's incorrect implementation --- diff --git a/Lib/test/test_math.py b/Lib/test/test_math.py index 680c6ac2bb97..7d49ed96b558 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.))