summaryrefslogtreecommitdiffstats
path: root/test/LINK/SHLINKFLAGS.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/SHLINKFLAGS.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/SHLINKFLAGS.py')
-rw-r--r--test/LINK/SHLINKFLAGS.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/LINK/SHLINKFLAGS.py b/test/LINK/SHLINKFLAGS.py
index 57766de..51b6e22 100644
--- a/test/LINK/SHLINKFLAGS.py
+++ b/test/LINK/SHLINKFLAGS.py
@@ -37,7 +37,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_shlink_flag']
os.system(" ".join(args))
""" % test.workpath('wrapper.out').replace('\\', '\\\\'))
@@ -78,7 +78,7 @@ test.must_not_exist(test.workpath('wrapper.out'))
test.run(arguments = lib_ + 'bar' + _shlib)
-test.fail_test(test.read('wrapper.out') != "wrapper.py\n")
+test.must_match('wrapper.out', "wrapper.py\n")
test.pass_test()