looking up on the type is correct, so this isn't an XXX

This commit is contained in:
Benjamin Peterson 2010-07-05 17:11:05 +00:00
parent f34e82ef49
commit 97c694b90b
1 changed files with 0 additions and 7 deletions

View File

@ -923,13 +923,6 @@ class TestNoTrunc(object):
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.))