summaryrefslogtreecommitdiffstats
path: root/test/import.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/import.py')
-rw-r--r--test/import.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/import.py b/test/import.py
index ef5ee61..c23657a 100644
--- a/test/import.py
+++ b/test/import.py
@@ -63,7 +63,7 @@ platforms = [
for platform in platforms:
test.write('SConstruct', """
-print "Platform %(platform)s"
+print("Platform %(platform)s")
env = Environment(platform = '%(platform)s')
import SCons.Platform.%(platform)s
x = SCons.Platform.%(platform)s.generate
@@ -150,7 +150,7 @@ error_output = {
# An SConstruct for importing Tool names that have illegal characters
# for Python variable names.
indirect_import = """\
-print "Tool %(tool)s (indirect)"
+print("Tool %(tool)s (indirect)")
env = Environment(tools = ['%(tool)s'])
SCons = __import__('SCons.Tool.%(tool)s', globals(), locals(), [])
@@ -161,7 +161,7 @@ m.generate(env)
# An SConstruct for importing Tool names "normally."
direct_import = """\
-print "Tool %(tool)s (direct)"
+print("Tool %(tool)s (direct)")
env = Environment(tools = ['%(tool)s'])
import SCons.Tool.%(tool)s
@@ -185,8 +185,8 @@ for tool in tools:
matched = 1
break
if not matched:
- print "Failed importing '%s', stderr:" % tool
- print stderr
+ print("Failed importing '%s', stderr:" % tool)
+ print(stderr)
failures.append(tool)
test.fail_test(len(failures))