diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-03-12 21:40:03 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-03-12 21:40:03 (GMT) |
commit | cc31754c1f74e8f6206329f6b267660cfc72c993 (patch) | |
tree | cb62bea989c3c32d2fe962092128d4e4a9f157b2 /test/option-i.py | |
parent | a0484dfdd42420f93823aad868c73bd6b3565f82 (diff) | |
download | SCons-cc31754c1f74e8f6206329f6b267660cfc72c993.zip SCons-cc31754c1f74e8f6206329f6b267660cfc72c993.tar.gz SCons-cc31754c1f74e8f6206329f6b267660cfc72c993.tar.bz2 |
set mode=r and not rb. py2/3
Diffstat (limited to 'test/option-i.py')
-rw-r--r-- | test/option-i.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/test/option-i.py b/test/option-i.py index 3301bf5..9b5212d 100644 --- a/test/option-i.py +++ b/test/option-i.py @@ -73,22 +73,21 @@ test.run(arguments = '-i aaa.1 aaa.out bbb.1 bbb.out', 'scons: *** [bbb.1] Error 1\n') test.fail_test(os.path.exists(test.workpath('aaa.1'))) -test.fail_test(test.read('aaa.out') != "succeed.py: aaa.out\n") +test.fail_test(test.read('aaa.out',mode='r') != "succeed.py: aaa.out\n") test.fail_test(os.path.exists(test.workpath('bbb.1'))) -test.fail_test(test.read('bbb.out') != "succeed.py: bbb.out\n") +test.fail_test(test.read('bbb.out',mode='r') != "succeed.py: bbb.out\n") test.unlink("aaa.out") test.unlink("bbb.out") -test.run(arguments = '--ignore-errors aaa.1 aaa.out bbb.1 bbb.out', - stderr = - 'scons: *** [aaa.1] Error 1\n' +test.run(arguments='--ignore-errors aaa.1 aaa.out bbb.1 bbb.out', + stderr='scons: *** [aaa.1] Error 1\n' 'scons: *** [bbb.1] Error 1\n') test.fail_test(os.path.exists(test.workpath('aaa.1'))) -test.fail_test(test.read('aaa.out') != "succeed.py: aaa.out\n") +test.fail_test(test.read('aaa.out', mode='r') != "succeed.py: aaa.out\n") test.fail_test(os.path.exists(test.workpath('bbb.1'))) -test.fail_test(test.read('bbb.out') != "succeed.py: bbb.out\n") +test.fail_test(test.read('bbb.out', mode='r') != "succeed.py: bbb.out\n") test.pass_test() |