From ba303c82d117d81101308ee241dab02cf8864169 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Wed, 7 Jul 2010 15:51:17 +0000 Subject: [PATCH] these tests are the result of cpython's incorrect implementation --- Lib/test/test_math.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Lib/test/test_math.py b/Lib/test/test_math.py index 680c6ac2bb..7d49ed96b5 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.)) -- 2.50.1