Enable the trunc() test.

This commit is contained in:
Guido van Rossum 2007-08-30 17:46:57 +00:00
parent 1daf954dcf
commit 080b2b252e
1 changed files with 1 additions and 2 deletions

View File

@ -37,8 +37,7 @@ def test_complex(self):
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)