Skip to content

Commit

Permalink
Use Python 3-compatible print
Browse files Browse the repository at this point in the history
  • Loading branch information
benmwebb committed Dec 6, 2017
1 parent 2e56467 commit 3b261e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/SConscript
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Import('env', 'bin')
import sys

e = env.Clone()

Expand All @@ -17,7 +18,7 @@ def builder_unit_test(target, source, env):
if c.Execute(app) == 0:
file(str(target[0]), 'w').write('PASSED\n')
else:
print "unit tests FAILED"
sys.stdout.write("unit tests FAILED\n")
return 1
e.Append(BUILDERS = {'Test': Builder(action=builder_unit_test)})

Expand Down

0 comments on commit 3b261e4

Please sign in to comment.