summaryrefslogtreecommitdiffstats
path: root/test/LINK/SHLINK.py
diff options
context:
space:
mode:
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()