[Python-3000-checkins] r57372 - python/branches/py3k/Lib/test/test_long.py

guido.van.rossum python-3000-checkins at python.org
Fri Aug 24 05:46:31 CEST 2007


Author: guido.van.rossum
Date: Fri Aug 24 05:46:30 2007
New Revision: 57372

Modified:
   python/branches/py3k/Lib/test/test_long.py
Log:
math.floor(<int>) now returns the argument,
so the overflow test no longer matters.


Modified: python/branches/py3k/Lib/test/test_long.py
==============================================================================
--- python/branches/py3k/Lib/test/test_long.py	(original)
+++ python/branches/py3k/Lib/test/test_long.py	Fri Aug 24 05:46:30 2007
@@ -380,7 +380,9 @@
                      "1. ** huge", "huge ** 1.", "1. ** mhuge", "mhuge ** 1.",
                      "math.sin(huge)", "math.sin(mhuge)",
                      "math.sqrt(huge)", "math.sqrt(mhuge)", # should do better
-                     "math.floor(huge)", "math.floor(mhuge)"]:
+                     # math.floor() of an int returns an int now
+                     ##"math.floor(huge)", "math.floor(mhuge)",
+                     ]:
 
             self.assertRaises(OverflowError, eval, test, namespace)
 


More information about the Python-3000-checkins mailing list