summaryrefslogtreecommitdiffstats
path: root/test/Configure
diff options
context:
space:
mode:
authorCraig Rodrigues <rodrigc@FreeBSD.org>2017-03-11 12:09:11 (GMT)
committerCraig Rodrigues <rodrigc@FreeBSD.org>2017-03-11 12:09:11 (GMT)
commitc14936494d79a00b533e7e8ce9a41e5176c1295f (patch)
tree079546afb1d6be21831851837d10f4af1d738018 /test/Configure
parent055c8046afce036fdfad4bc8d60e4059da148f7d (diff)
downloadSCons-c14936494d79a00b533e7e8ce9a41e5176c1295f.zip
SCons-c14936494d79a00b533e7e8ce9a41e5176c1295f.tar.gz
SCons-c14936494d79a00b533e7e8ce9a41e5176c1295f.tar.bz2
Use print() function. Fixes py2/3
Diffstat (limited to 'test/Configure')
-rw-r--r--test/Configure/custom-tests.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/Configure/custom-tests.py b/test/Configure/custom-tests.py
index 503eb4e..7bb2366 100644
--- a/test/Configure/custom-tests.py
+++ b/test/Configure/custom-tests.py
@@ -49,8 +49,10 @@ runOK = compileOK
runFAIL = "int main() { return 1; }"
test.write('pyAct.py', """\
+from __future__ import print_function
+
import sys
-print sys.argv[1]
+print(sys.argv[1])
sys.exit(int(sys.argv[1]))
""")