[Python-checkins] r76485 - in python/branches/py3k: Lib/test/test_float.py
mark.dickinson
python-checkins at python.org
Tue Nov 24 11:59:35 CET 2009
Author: mark.dickinson
Date: Tue Nov 24 11:59:34 2009
New Revision: 76485
Log:
Merged revisions 76483 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r76483 | mark.dickinson | 2009-11-24 10:54:58 +0000 (Tue, 24 Nov 2009) | 2 lines
round(0, "ermintrude") succeeded instead of producing a TypeError. Fix this.
........
Modified:
python/branches/py3k/ (props changed)
python/branches/py3k/Lib/test/test_float.py
Modified: python/branches/py3k/Lib/test/test_float.py
==============================================================================
--- python/branches/py3k/Lib/test/test_float.py (original)
+++ python/branches/py3k/Lib/test/test_float.py Tue Nov 24 11:59:34 2009
@@ -417,6 +417,10 @@
self.assertRaises(OverflowError, round, INF)
self.assertRaises(OverflowError, round, -INF)
self.assertRaises(ValueError, round, NAN)
+ self.assertRaises(TypeError, round, INF, 0.0)
+ self.assertRaises(TypeError, round, -INF, 1.0)
+ self.assertRaises(TypeError, round, NAN, "ceci n'est pas un integer")
+ self.assertRaises(TypeError, round, -0.0, 1j)
@unittest.skipUnless(float.__getformat__("double").startswith("IEEE"),
"test requires IEEE 754 doubles")
More information about the Python-checkins
mailing list