diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-03-14 03:07:10 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-03-14 03:07:10 (GMT) |
commit | 496d5d4655ec5eaaf5f47b70a0a5e9f08a310ff3 (patch) | |
tree | 41e70391cb38e33f949d88c517f1e10327c3de6a /test/CC | |
parent | 75eec4b5eb4adbd3ee041021f3ee0a62c1d5b669 (diff) | |
download | SCons-496d5d4655ec5eaaf5f47b70a0a5e9f08a310ff3.zip SCons-496d5d4655ec5eaaf5f47b70a0a5e9f08a310ff3.tar.gz SCons-496d5d4655ec5eaaf5f47b70a0a5e9f08a310ff3.tar.bz2 |
py2/3 add mode='r' to must_match. Should fix some win32 failures
Diffstat (limited to 'test/CC')
-rw-r--r-- | test/CC/CC.py | 6 | ||||
-rw-r--r-- | test/CC/SHCC.py | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/CC/CC.py b/test/CC/CC.py index f6c2954..6363273 100644 --- a/test/CC/CC.py +++ b/test/CC/CC.py @@ -124,7 +124,7 @@ env.Program(target = 'test1', source = 'test1.c') test.run(arguments = '.', stderr = None) -test.must_match('test1' + _exe, "This is a .c file.\n") +test.must_match('test1' + _exe, "This is a .c file.\n", mode='r') if os.path.normcase('.c') == os.path.normcase('.C'): @@ -137,7 +137,7 @@ env.Program(target = 'test2', source = 'test2.C') """ % locals()) test.run(arguments = '.', stderr = None) - test.must_match('test2' + _exe, "This is a .C file.\n") + test.must_match('test2' + _exe, "This is a .C file.\n", mode='r') test.file_fixture('wrapper.py') @@ -157,7 +157,7 @@ test.up_to_date(arguments = 'foo' + _exe) test.run(arguments = 'bar' + _exe) -test.must_match('wrapper.out', "wrapper.py\n") +test.must_match('wrapper.out', "wrapper.py\n", mode='r') test.up_to_date(arguments = 'bar' + _exe) diff --git a/test/CC/SHCC.py b/test/CC/SHCC.py index beda8e4..c756219 100644 --- a/test/CC/SHCC.py +++ b/test/CC/SHCC.py @@ -75,7 +75,7 @@ test.must_not_exist(test.workpath('wrapper.out')) test.run(arguments = 'bar') -test.must_match('wrapper.out', "wrapper.py\n") +test.must_match('wrapper.out', "wrapper.py\n", mode='r') test.pass_test() |