]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Enable the trunc() test.
authorGuido van Rossum <guido@python.org>
Thu, 30 Aug 2007 17:46:57 +0000 (17:46 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 30 Aug 2007 17:46:57 +0000 (17:46 +0000)
Lib/test/test_abstract_numbers.py

index 9fffd28db6351a6f0733f1cacad3228ec0693678..aa383da911b7e855398e64a6287dfb8d6b66e626 100644 (file)
@@ -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)