summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorCraig Rodrigues <rodrigc@FreeBSD.org>2017-03-10 05:29:07 (GMT)
committerCraig Rodrigues <rodrigc@FreeBSD.org>2017-03-10 05:29:07 (GMT)
commitb4a807726365f963db3c5b0f0ba8b459c40a64d2 (patch)
treed90c4ec27e545e0efbff88101305ef13f58d335b /test
parent2ba9035552f09f80d0350e131b19b08f977f5159 (diff)
downloadSCons-b4a807726365f963db3c5b0f0ba8b459c40a64d2.zip
SCons-b4a807726365f963db3c5b0f0ba8b459c40a64d2.tar.gz
SCons-b4a807726365f963db3c5b0f0ba8b459c40a64d2.tar.bz2
Use print() function to fix py2/3
Diffstat (limited to 'test')
-rw-r--r--test/CXX/CXXVERSION.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/CXX/CXXVERSION.py b/test/CXX/CXXVERSION.py
index 6017001..abe6ce0 100644
--- a/test/CXX/CXXVERSION.py
+++ b/test/CXX/CXXVERSION.py
@@ -38,16 +38,17 @@ if sys.platform == 'win32':
test.write("versioned.py",
-"""import os
+"""from __future__ import print_function
+import os
import sys
if '-dumpversion' in sys.argv:
- print '3.9.9'
+ print('3.9.9')
sys.exit(0)
if '--version' in sys.argv:
- print 'this is version 2.9.9 wrapping', sys.argv[2]
+ print('this is version 2.9.9 wrapping', sys.argv[2])
sys.exit(0)
if sys.argv[1] not in [ '2.9.9', '3.9.9' ]:
- print 'wrong version', sys.argv[1], 'when wrapping', sys.argv[2]
+ print('wrong version', sys.argv[1], 'when wrapping', sys.argv[2])
sys.exit(1)
os.system(" ".join(sys.argv[2:]))
""")