summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-08-30 17:46:57 (GMT)
committerGuido van Rossum <guido@python.org>2007-08-30 17:46:57 (GMT)
commit080b2b252ec430c85464cbc6d82d1f38f9776af4 (patch)
treee6c27fab75636acba167207007a7baab5d089190 /Lib
parent1daf954dcf6fa5630b049f1d1edcc9cc656ea5be (diff)
downloadcpython-080b2b252ec430c85464cbc6d82d1f38f9776af4.zip
cpython-080b2b252ec430c85464cbc6d82d1f38f9776af4.tar.gz
cpython-080b2b252ec430c85464cbc6d82d1f38f9776af4.tar.bz2
Enable the trunc() test.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_abstract_numbers.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_abstract_numbers.py b/Lib/test/test_abstract_numbers.py
index 9fffd28..aa383da 100644
--- a/Lib/test/test_abstract_numbers.py
+++ b/Lib/test/test_abstract_numbers.py
@@ -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)