From 97c694b90b17f8baa68e0c01c20ff5eff6cfce28 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Mon, 5 Jul 2010 17:11:05 +0000 Subject: looking up on the type is correct, so this isn't an XXX --- Lib/test/test_math.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Lib/test/test_math.py b/Lib/test/test_math.py index 6c07c88..d6f14b2 100644 --- a/Lib/test/test_math.py +++ b/Lib/test/test_math.py @@ -923,13 +923,6 @@ class MathTests(unittest.TestCase): self.assertRaises(TypeError, math.trunc, 1, 2) self.assertRaises(TypeError, math.trunc, TestNoTrunc()) - # XXX Doesn't work because the method is looked up on - # the type only. - #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.)) -- cgit v0.12