Author: guido.van.rossum
Date: Thu Aug 30 19:46:57 2007
New Revision: 57739
Modified:
python/branches/py3k/Lib/test/test_abstract_numbers.py
Log:
Enable the trunc() test.
Modified: python/branches/py3k/Lib/test/test_abstract_numbers.py
==============================================================================
--- python/branches/py3k/Lib/test/test_abstract_numbers.py (original)
+++ python/branches/py3k/Lib/test/test_abstract_numbers.py Thu Aug 30
19:46:57 2007
@@ -37,8 +37,7 @@
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)
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins