[mpmath] r1230 committed - fix syntax errors in extratest files

3 views
Skip to first unread message

mpm...@googlecode.com

unread,
Feb 6, 2011, 6:37:02 AM2/6/11
to mpmath-...@googlegroups.com
Revision: 1230
Author: fredrik.johansson
Date: Sun Feb 6 03:36:17 2011
Log: fix syntax errors in extratest files
http://code.google.com/p/mpmath/source/detail?r=1230

Modified:
/trunk/mpmath/tests/extratest_gamma.py
/trunk/mpmath/tests/torture.py

=======================================
--- /trunk/mpmath/tests/extratest_gamma.py Sat Jan 8 14:38:25 2011
+++ /trunk/mpmath/tests/extratest_gamma.py Sun Feb 6 03:36:17 2011
@@ -47,7 +47,7 @@
if raise_:
raise SystemExit
if not err:
- print("%s ok;" % name, end=' ')
+ sys.stdout.write("%s ok; " % name)

def testcase(case):
z, result = case
=======================================
--- /trunk/mpmath/tests/torture.py Sat Jan 8 15:11:04 2011
+++ /trunk/mpmath/tests/torture.py Sun Feb 6 03:36:17 2011
@@ -77,7 +77,7 @@
exponents += [-1000, -100, -50, 50, 100, 1000]
for n in exponents:
if verbose:
- print(".", end=' ')
+ sys.stdout.write(". ")
mp.dps = 25
xpos = mpf(10)**n / 1.1287
xneg = -xpos
@@ -209,7 +209,7 @@
if filt in line:
print(line)
t1 = clock()
- exec_(line)
+ exec_(line, globals(), locals())
t2 = clock()
elapsed = t2-t1
print("Time:", elapsed, "for", line, "(OK)")

Reply all
Reply to author
Forward
0 new messages