diff options
Diffstat (limited to 'test/LINK/LINKFLAGS.py')
-rw-r--r-- | test/LINK/LINKFLAGS.py | 4 |
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() |