changeset 57946:dd6726c978c6

Merged revisions 77066 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r77066 | mark.dickinson | 2009-12-27 16:16:02 +0000 (Sun, 27 Dec 2009) | 1 line Use ldexp(q, exp) instead of q*2.**exp in true division test, to avoid bogus failures on platforms with broken pow (e.g., Ubuntu/ia64). ........
author Mark Dickinson <dickinsm@gmail.com>
date Sun, 27 Dec 2009 19:03:31 +0000
parents aaa5ab7b942a
children 73365bb26fd6
files Lib/test/test_long.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Lib/test/test_long.py	Sun Dec 27 15:09:50 2009 +0000
+++ b/Lib/test/test_long.py	Sun Dec 27 19:03:31 2009 +0000
@@ -73,7 +73,7 @@
     if 2*r > b or 2*r == b and q % 2 == 1:
         q += 1
 
-    result = float(q) * 2.**exp
+    result = math.ldexp(q, exp)
     return -result if negative else result