summaryrefslogtreecommitdiffstats
path: root/test/LINK/LINKFLAGS.py
diff options
context:
space:
mode:
authorWilliam Blevins <wblevins001@gmail.com>2016-09-22 21:19:50 (GMT)
committerWilliam Blevins <wblevins001@gmail.com>2016-09-22 21:19:50 (GMT)
commit0f0725d9215ca35e9b9995a9421ef83e35a338d8 (patch)
treeda169366f448026e53f19b21c854a9c53be79644 /test/LINK/LINKFLAGS.py
parentefb7469bf68d57b590fa477f0ea2224d339f679f (diff)
downloadSCons-0f0725d9215ca35e9b9995a9421ef83e35a338d8.zip
SCons-0f0725d9215ca35e9b9995a9421ef83e35a338d8.tar.gz
SCons-0f0725d9215ca35e9b9995a9421ef83e35a338d8.tar.bz2
Yet another batch of test fixes.
Diffstat (limited to 'test/LINK/LINKFLAGS.py')
-rw-r--r--test/LINK/LINKFLAGS.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/LINK/LINKFLAGS.py b/test/LINK/LINKFLAGS.py
index 442baf7..f0c7518 100644
--- a/test/LINK/LINKFLAGS.py
+++ b/test/LINK/LINKFLAGS.py
@@ -36,7 +36,7 @@ test = TestSCons.TestSCons()
test.write("wrapper.py",
"""import os
import sys
-open('%s', 'wb').write("wrapper.py\\n")
+open('%s', 'wb').write(("wrapper.py\\n").encode())
args = [s for s in sys.argv[1:] if s != 'fake_link_flag']
os.system(" ".join(args))
""" % test.workpath('wrapper.out').replace('\\', '\\\\'))
@@ -80,7 +80,7 @@ test.must_not_exist(test.workpath('wrapper.out'))
test.run(arguments = 'bar' + _exe)
-test.fail_test(test.read('wrapper.out') != "wrapper.py\n")
+test.must_match('wrapper.out', "wrapper.py\n")
test.pass_test()