]> granicus.if.org Git - python/commitdiff
looking up on the type is correct, so this isn't an XXX
authorBenjamin Peterson <benjamin@python.org>
Mon, 5 Jul 2010 17:11:05 +0000 (17:11 +0000)
committerBenjamin Peterson <benjamin@python.org>
Mon, 5 Jul 2010 17:11:05 +0000 (17:11 +0000)
Lib/test/test_math.py

index 6c07c8801db9c47ffc574074559729e454a078a2..d6f14b2e98a53aa4b0cf9ac6e59af20f10068450 100644 (file)
@@ -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.))