summaryrefslogtreecommitdiffstats
path: root/test/Deprecated/Options
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-09-25 22:19:04 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-09-25 22:19:04 (GMT)
commit53d289074458b53d634a9aa922250a5c08b6c2d9 (patch)
treee11c3ea791864caa646af308d82d101214e82b18 /test/Deprecated/Options
parent2e0de3c55f22b3eaa7767b69740b898f3d2f46bf (diff)
downloadSCons-53d289074458b53d634a9aa922250a5c08b6c2d9.zip
SCons-53d289074458b53d634a9aa922250a5c08b6c2d9.tar.gz
SCons-53d289074458b53d634a9aa922250a5c08b6c2d9.tar.bz2
Fix tests which break when using print() and no from __future__ import print_function under python 2.7 because the print('a','b') effectively becomes printing a tuple which doesn't match the expected strings
Diffstat (limited to 'test/Deprecated/Options')
-rw-r--r--test/Deprecated/Options/chdir.py2
-rw-r--r--test/Deprecated/Options/import.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/Deprecated/Options/chdir.py b/test/Deprecated/Options/chdir.py
index ed0aab1..bfeda1b 100644
--- a/test/Deprecated/Options/chdir.py
+++ b/test/Deprecated/Options/chdir.py
@@ -46,7 +46,7 @@ SConscript_contents = """\
Import("opts")
env = Environment()
opts.Update(env)
-print("VARIABLE =", repr(env['VARIABLE']))
+print("VARIABLE = %s"%repr(env['VARIABLE']))
"""
test.write(['bin', 'opts.cfg'], """\
diff --git a/test/Deprecated/Options/import.py b/test/Deprecated/Options/import.py
index b93e6a2..764a061 100644
--- a/test/Deprecated/Options/import.py
+++ b/test/Deprecated/Options/import.py
@@ -48,7 +48,7 @@ SConscript_contents = """\
Import("opts")
env = Environment()
opts.Update(env)
-print("VARIABLE =", env.get('VARIABLE'))
+print("VARIABLE = %s"%env.get('VARIABLE'))
"""
test.write(['bin', 'opts.cfg'], """\