Blob Blame History Raw
diff -up mpmath-all-0.17/mpmath/tests/extratest_gamma.py.orig mpmath-all-0.17/mpmath/tests/extratest_gamma.py
--- mpmath-all-0.17/mpmath/tests/extratest_gamma.py.orig	2011-02-01 23:17:45.000000000 +0200
+++ mpmath-all-0.17/mpmath/tests/extratest_gamma.py	2011-02-06 13:42:49.491701000 +0200
@@ -47,7 +47,7 @@ def check(name, func, z, y):
         if raise_:
             raise SystemExit
     if not err:
-        print("%s ok;" % name, end=' ')
+        sys.stdout.write("%s ok; " % name)
 
 def testcase(case):
     z, result = case
diff -up mpmath-all-0.17/mpmath/tests/torture.py.orig mpmath-all-0.17/mpmath/tests/torture.py
--- mpmath-all-0.17/mpmath/tests/torture.py.orig	2011-02-01 23:17:45.000000000 +0200
+++ mpmath-all-0.17/mpmath/tests/torture.py	2011-02-06 13:43:52.513485746 +0200
@@ -77,7 +77,7 @@ def test_asymp(f, maxdps=150, verbose=Fa
         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 @@ def testit(line):
     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)")