diff options
author | William Blevins <wblevins001@gmail.com> | 2016-09-21 16:57:57 (GMT) |
---|---|---|
committer | William Blevins <wblevins001@gmail.com> | 2016-09-21 16:57:57 (GMT) |
commit | f5035c6a61ad10f440a22c14ce22bbb1d6796f62 (patch) | |
tree | 804b1383be0b30f3118d5df81db4315bcea1d32e /test/CC/SHCC.py | |
parent | 5f4aa5312e2d37a271233d864573772ae2b512fe (diff) | |
download | SCons-f5035c6a61ad10f440a22c14ce22bbb1d6796f62.zip SCons-f5035c6a61ad10f440a22c14ce22bbb1d6796f62.tar.gz SCons-f5035c6a61ad10f440a22c14ce22bbb1d6796f62.tar.bz2 |
More test fixes.
Diffstat (limited to 'test/CC/SHCC.py')
-rw-r--r-- | test/CC/SHCC.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/CC/SHCC.py b/test/CC/SHCC.py index b624bf2..5f121fc 100644 --- a/test/CC/SHCC.py +++ b/test/CC/SHCC.py @@ -35,7 +35,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('\\', '\\\\')) @@ -76,11 +76,11 @@ main(int argc, char *argv[]) test.run(arguments = 'foo') -test.fail_test(os.path.exists(test.workpath('wrapper.out'))) +test.must_not_exist(test.workpath('wrapper.out')) test.run(arguments = 'bar') -test.fail_test(test.read('wrapper.out') != "wrapper.py\n") +test.must_match('wrapper.out', "wrapper.py\n") test.pass_test() |