summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-07-05 17:11:05 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-07-05 17:11:05 (GMT)
commit97c694b90b17f8baa68e0c01c20ff5eff6cfce28 (patch)
tree179855d499b10fb684a742a9eb6d40a69cbc9f0f /Lib
parentf34e82ef49728f73254b1eff12bfe643c2cd2124 (diff)
downloadcpython-97c694b90b17f8baa68e0c01c20ff5eff6cfce28.zip
cpython-97c694b90b17f8baa68e0c01c20ff5eff6cfce28.tar.gz
cpython-97c694b90b17f8baa68e0c01c20ff5eff6cfce28.tar.bz2
looking up on the type is correct, so this isn't an XXX
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_math.py7
1 files changed, 0 insertions, 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.))