summaryrefslogtreecommitdiffstats
path: root/test/option-i.py
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-03-12 21:40:03 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-03-12 21:40:03 (GMT)
commitcc31754c1f74e8f6206329f6b267660cfc72c993 (patch)
treecb62bea989c3c32d2fe962092128d4e4a9f157b2 /test/option-i.py
parenta0484dfdd42420f93823aad868c73bd6b3565f82 (diff)
downloadSCons-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.py13
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()