[Python-modules-commits] r24312 - in packages/scipy/trunk/debian/tests (python2)

jtaylor-guest at users.alioth.debian.org jtaylor-guest at users.alioth.debian.org
Sat May 11 19:25:18 UTC 2013


    Date: Saturday, May 11, 2013 @ 19:25:16
  Author: jtaylor-guest
Revision: 24312

use print_function for python2 to easy syncing with py3 tests

Modified:
  packages/scipy/trunk/debian/tests/python2

Modified: packages/scipy/trunk/debian/tests/python2
===================================================================
--- packages/scipy/trunk/debian/tests/python2	2013-05-11 19:25:12 UTC (rev 24311)
+++ packages/scipy/trunk/debian/tests/python2	2013-05-11 19:25:16 UTC (rev 24312)
@@ -10,6 +10,7 @@
 cd "$ADTTMP"
 #nosetest does not handle knowfailures
 cat << EOF > runtest.py
+from __future__ import print_function
 import $TESTPKG
 import re
 # add failures to skip here
@@ -31,15 +32,15 @@
     eid = e[0].id()
     test = [re.search(s, eid) is not None for s in skip]
     if not any(test):
-        print "failed:", eid
+        print("failed:", eid)
         errors.append(e)
     else:
-        print "skipped:", eid
+        print("skipped:", eid)
         if True in test:
             del skip[test.index(True)]
-print "#errors: %d" % len(errors)
+print("#errors: %d" % len(errors))
 for s in skip:
-    print "unused skips:", s
+    print("unused skips:", s)
 assert len(errors) == 0
 EOF
 




More information about the Python-modules-commits mailing list