summaryrefslogtreecommitdiffstats
path: root/test/site_scons
diff options
context:
space:
mode:
Diffstat (limited to 'test/site_scons')
-rw-r--r--test/site_scons/basic.py4
-rw-r--r--test/site_scons/no-site-dir.py4
-rw-r--r--test/site_scons/override.py2
-rw-r--r--test/site_scons/site-dir.py4
-rw-r--r--test/site_scons/site_init.py8
5 files changed, 11 insertions, 11 deletions
diff --git a/test/site_scons/basic.py b/test/site_scons/basic.py
index 1868723..b3ae9f2 100644
--- a/test/site_scons/basic.py
+++ b/test/site_scons/basic.py
@@ -40,7 +40,7 @@ test.subdir('site_scons', ['site_scons', 'site_tools'])
test.write(['site_scons', 'site_init.py'], """
from SCons.Script import *
-print "Hi there, I am in site_scons/site_init.py!"
+print("Hi there, I am in site_scons/site_init.py!")
""")
test.write(['site_scons', 'site_tools', 'mytool.py'], """
@@ -54,7 +54,7 @@ def exists(env):
test.write('SConstruct', """
e=Environment(tools=['default', 'mytool'])
-print e.subst('My site tool is $MYTOOL')
+print(e.subst('My site tool is $MYTOOL'))
""")
test.run(arguments = '-Q .',
diff --git a/test/site_scons/no-site-dir.py b/test/site_scons/no-site-dir.py
index d01d419..c31ec94 100644
--- a/test/site_scons/no-site-dir.py
+++ b/test/site_scons/no-site-dir.py
@@ -37,7 +37,7 @@ test.subdir('site_scons', ['site_scons', 'site_tools'])
test.write(['site_scons', 'site_init.py'], """
from SCons.Script import *
-print "Hi there, I am in site_scons/site_init.py!"
+print("Hi there, I am in site_scons/site_init.py!")
""")
test.write(['site_scons', 'site_tools', 'mytool.py'], """
@@ -68,7 +68,7 @@ test.run(arguments = '-Q --no-site-dir .',
test.write('SConstruct', """
e=Environment()
-print e.subst('no site: M4 is $M4, M4_MINE is $M4_MINE')
+print(e.subst('no site: M4 is $M4, M4_MINE is $M4_MINE'))
""")
test.run(arguments = '-Q --no-site-dir .')
diff --git a/test/site_scons/override.py b/test/site_scons/override.py
index e33bb88..d65c09e 100644
--- a/test/site_scons/override.py
+++ b/test/site_scons/override.py
@@ -49,7 +49,7 @@ def exists(env):
test.write('SConstruct', """
e=Environment(tools=['m4'])
-print e.subst('M4 is $M4, M4_MINE is $M4_MINE')
+print(e.subst('M4 is $M4, M4_MINE is $M4_MINE'))
""")
test.run(arguments = '-Q .',
stdout = """M4 is my_m4, M4_MINE is 1
diff --git a/test/site_scons/site-dir.py b/test/site_scons/site-dir.py
index 8e82e94..d60e7d9 100644
--- a/test/site_scons/site-dir.py
+++ b/test/site_scons/site-dir.py
@@ -38,7 +38,7 @@ test.subdir('site_scons', ['site_scons', 'site_tools'])
test.write(['site_scons', 'site_init.py'], """
from SCons.Script import *
-print "Hi there, I am in site_scons/site_init.py!"
+print("Hi there, I am in site_scons/site_init.py!")
""")
test.write(['site_scons', 'site_tools', 'mytool.py'], """
@@ -55,7 +55,7 @@ test.subdir('alt_site', ['alt_site', 'site_tools'])
test.write(['alt_site', 'site_init.py'], """
from SCons.Script import *
-print "Hi there, I am in alt_site/site_init.py!"
+print("Hi there, I am in alt_site/site_init.py!")
""")
test.write('SConstruct', """
diff --git a/test/site_scons/site_init.py b/test/site_scons/site_init.py
index 45201ac..27768a9 100644
--- a/test/site_scons/site_init.py
+++ b/test/site_scons/site_init.py
@@ -58,10 +58,10 @@ for x in list(globals().keys()):
continue
special.append(x)
-print sorted(special)
-print __doc__
-print os.path.realpath(__file__)
-print __name__
+print(sorted(special))
+print(__doc__)
+print(os.path.realpath(__file__))
+print(__name__)
""")
test.write('SConstruct', "\n")