summaryrefslogtreecommitdiffstats
path: root/test/LINK/SHLINK.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/SHLINK.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/SHLINK.py')
-rw-r--r--test/LINK/SHLINK.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/LINK/SHLINK.py b/test/LINK/SHLINK.py
index bc1239b..7353996 100644
--- a/test/LINK/SHLINK.py
+++ b/test/LINK/SHLINK.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(b"wrapper.py\\n")
os.system(" ".join(sys.argv[1:]))
""" % test.workpath('wrapper.out').replace('\\', '\\\\'))
@@ -73,11 +73,11 @@ test()
test.run(arguments = dll_ + 'foo' + _shlib)
-test.fail_test(os.path.exists(test.workpath('wrapper.out')))
+test.must_not_exist(test.workpath('wrapper.out'))
test.run(arguments = dll_ + 'bar' + _shlib)
-test.fail_test(test.read('wrapper.out') != "wrapper.py\n")
+test.must_match('wrapper.out', "wrapper.py\n")
test.pass_test()