Commit 080b2b25 authored by Guido van Rossum's avatar Guido van Rossum

Enable the trunc() test.

parent 1daf954d
......@@ -37,8 +37,7 @@ class TestNumbers(unittest.TestCase):
self.failUnless(issubclass(complex, Inexact))
c1, c2 = complex(3, 2), complex(4,1)
# TODO: Uncomment this test when trunc() exists.
#self.assertRaises(None, trunc, c1)
self.assertRaises(TypeError, trunc, c1)
self.assertRaises(TypeError, operator.mod, c1, c2)
self.assertRaises(TypeError, divmod, c1, c2)
self.assertRaises(TypeError, operator.floordiv, c1, c2)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment