[Python-checkins] r82585 - python/branches/py3k/Lib/test/test_math.py
benjamin.peterson
python-checkins at python.org
Mon Jul 5 19:11:05 CEST 2010
Author: benjamin.peterson
Date: Mon Jul 5 19:11:05 2010
New Revision: 82585
Log:
looking up on the type is correct, so this isn't an XXX
Modified:
python/branches/py3k/Lib/test/test_math.py
Modified: python/branches/py3k/Lib/test/test_math.py
==============================================================================
--- python/branches/py3k/Lib/test/test_math.py (original)
+++ python/branches/py3k/Lib/test/test_math.py Mon Jul 5 19:11:05 2010
@@ -923,13 +923,6 @@
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.))
More information about the Python-checkins
mailing list