diff options
Diffstat (limited to 'test/LINK/LINK.py')
-rw-r--r-- | test/LINK/LINK.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/LINK/LINK.py b/test/LINK/LINK.py index 25d9efb..54c75fa 100644 --- a/test/LINK/LINK.py +++ b/test/LINK/LINK.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()) os.system(" ".join(sys.argv[1:])) """ % test.workpath('wrapper.out').replace('\\', '\\\\')) @@ -75,11 +75,11 @@ main(int argc, char *argv[]) test.run(arguments = 'foo' + _exe) -test.fail_test(os.path.exists(test.workpath('wrapper.out'))) +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() |