summaryrefslogtreecommitdiff
path: root/test/Platform.py
diff options
context:
space:
mode:
authorRussel Winder <russel@winder.org.uk>2016-01-01 15:59:23 +0000
committerRussel Winder <russel@winder.org.uk>2016-01-01 15:59:23 +0000
commitf075b096be96479dbb162b71273b9012c88902f1 (patch)
tree4b30c7fe89b85380b9c825c906e2745c4d7c96d1 /test/Platform.py
parenteaf9ba8362c74ce7589b5d2bfc6049d92d0c8d61 (diff)
downloadscons-f075b096be96479dbb162b71273b9012c88902f1.tar.gz
Some more statement to function transforms.
Diffstat (limited to 'test/Platform.py')
-rw-r--r--test/Platform.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/Platform.py b/test/Platform.py
index 23068c43..924dbc75 100644
--- a/test/Platform.py
+++ b/test/Platform.py
@@ -31,27 +31,27 @@ test = TestSCons.TestSCons()
test.write('SConstruct', """
env = Environment()
Platform('cygwin')(env)
-print "'%s'" % env['PROGSUFFIX']
+print("'%s'" % env['PROGSUFFIX'])
assert env['SHELL'] == 'sh'
Platform('os2')(env)
-print "'%s'" % env['PROGSUFFIX']
+print("'%s'" % env['PROGSUFFIX'])
env.Platform('posix')
-print "'%s'" % env['PROGSUFFIX']
+print("'%s'" % env['PROGSUFFIX'])
Platform('win32')(env)
-print "'%s'" % env['PROGSUFFIX']
+print("'%s'" % env['PROGSUFFIX'])
SConscript('SConscript')
""")
test.write('SConscript', """
env = Environment()
Platform('cygwin')(env)
-print "'%s'" % env['LIBSUFFIX']
+print("'%s'" % env['LIBSUFFIX'])
Platform('os2')(env)
-print "'%s'" % env['LIBSUFFIX']
+print("'%s'" % env['LIBSUFFIX'])
env.Platform('posix')
-print "'%s'" % env['LIBSUFFIX']
+print("'%s'" % env['LIBSUFFIX'])
Platform('win32')(env)
-print "'%s'" % env['LIBSUFFIX']
+print("'%s'" % env['LIBSUFFIX'])
""")
expect = test.wrap_stdout(read_str = """'.exe'