diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-09-25 22:19:04 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-09-25 22:19:04 (GMT) |
commit | 53d289074458b53d634a9aa922250a5c08b6c2d9 (patch) | |
tree | e11c3ea791864caa646af308d82d101214e82b18 /test/overrides.py | |
parent | 2e0de3c55f22b3eaa7767b69740b898f3d2f46bf (diff) | |
download | SCons-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/overrides.py')
-rw-r--r-- | test/overrides.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/overrides.py b/test/overrides.py index 343cea4..cca8dc7 100644 --- a/test/overrides.py +++ b/test/overrides.py @@ -35,9 +35,9 @@ _python_ = TestSCons._python_ test.write('SConstruct', """ env = Environment(CCFLAGS='-DFOO', LIBS=['a']) def build(target, source, env): - print("env['CC'] =", env['CC']) - print("env['CCFLAGS'] =", env['CCFLAGS']) - print("env['LIBS'] =", env['LIBS']) + print("env['CC'] = "+env['CC']) + print("env['CCFLAGS'] = "+env['CCFLAGS']) + print("env['LIBS'] = "+str(env['LIBS'])) builder = Builder(action=build, CC='buildcc', LIBS='buildlibs') env['BUILDERS']['Build'] = builder |