Commit a501c6b2 authored by Stefan Behnel's avatar Stefan Behnel

py3 test fixes

parent e0af317c
...@@ -26,7 +26,7 @@ from collatz import collatz ...@@ -26,7 +26,7 @@ from collatz import collatz
try: try:
import line_profiler import line_profiler
except ImportError: except ImportError:
print "No line profiler, skipping test." print("No line profiler, skipping test.")
import sys import sys
sys.exit(0) sys.exit(0)
...@@ -41,7 +41,7 @@ for key, timings in stats.timings.items(): ...@@ -41,7 +41,7 @@ for key, timings in stats.timings.items():
assert len(timings) > 0 assert len(timings) > 0
break break
else: else:
raise ValueError, "No stats for collatz." raise ValueError("No stats for collatz.")
######## collatz.pyx ########### ######## collatz.pyx ###########
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment