From: Benjamin Peterson Date: Mon, 5 Jul 2010 17:11:05 +0000 (+0000) Subject: looking up on the type is correct, so this isn't an XXX X-Git-Tag: v3.2a1~302 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=97c694b90b17f8baa68e0c01c20ff5eff6cfce28;p=thirdparty%2FPython%2Fcpython.git looking up on the type is correct, so this isn't an XXX --- diff --git a/Lib/test/test_math.py b/Lib/test/test_math.py index 6c07c8801db9..d6f14b2e98a5 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.))