diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-03-19 21:48:25 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-03-19 21:48:25 (GMT) |
commit | 065e06645e101442a4b2b795b413d447190c6e9d (patch) | |
tree | 789e11891ee3a9b4673c21f609e0521485cd0852 /test/gettext | |
parent | 6fd4619d43e01417d521cbf915b8344baf8210bc (diff) | |
download | SCons-065e06645e101442a4b2b795b413d447190c6e9d.zip SCons-065e06645e101442a4b2b795b413d447190c6e9d.tar.gz SCons-065e06645e101442a4b2b795b413d447190c6e9d.tar.bz2 |
py2/3 must_match mode=r
Diffstat (limited to 'test/gettext')
-rw-r--r-- | test/gettext/POInit/UserExamples.py | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/test/gettext/POInit/UserExamples.py b/test/gettext/POInit/UserExamples.py index a498a53..a701851 100644 --- a/test/gettext/POInit/UserExamples.py +++ b/test/gettext/POInit/UserExamples.py @@ -79,8 +79,8 @@ test.write(['ex1', 'messages.pot'], pot_contents) test.run(arguments = 'po-create', chdir = 'ex1', stderr = None) test.must_exist( ['ex1', 'en.po'] ) test.must_exist( ['ex1', 'pl.po'] ) -test.must_contain( ['ex1', 'en.po'], "Hello from a.cpp") -test.must_contain( ['ex1', 'pl.po'], "Hello from a.cpp") +test.must_contain( ['ex1', 'en.po'], "Hello from a.cpp", mode='r') +test.must_contain( ['ex1', 'pl.po'], "Hello from a.cpp", mode='r') ############################################################################### @@ -102,8 +102,8 @@ test.write(['ex2', 'foo.pot'], pot_contents) test.run(arguments = 'po-create', chdir = 'ex2', stderr = None) test.must_exist( ['ex2', 'en.po'] ) test.must_exist( ['ex2', 'pl.po'] ) -test.must_contain( ['ex2', 'en.po'], "Hello from a.cpp" ) -test.must_contain( ['ex2', 'pl.po'], "Hello from a.cpp" ) +test.must_contain( ['ex2', 'en.po'], "Hello from a.cpp", mode='r' ) +test.must_contain( ['ex2', 'pl.po'], "Hello from a.cpp", mode='r' ) ############################################################################### # POInit: Example 3 @@ -124,8 +124,8 @@ test.write(['ex3', 'foo.pot'], pot_contents) test.run(arguments = 'po-create', chdir = 'ex3', stderr = None) test.must_exist( ['ex3', 'en.po'] ) test.must_exist( ['ex3', 'pl.po'] ) -test.must_contain( ['ex3', 'en.po'], "Hello from a.cpp") -test.must_contain( ['ex3', 'pl.po'], "Hello from a.cpp") +test.must_contain( ['ex3', 'en.po'], "Hello from a.cpp", mode='r') +test.must_contain( ['ex3', 'pl.po'], "Hello from a.cpp", mode='r') ############################################################################### # POInit: Example 4 @@ -150,8 +150,8 @@ test.write(['ex4', 'messages.pot'], pot_contents) test.run(arguments = 'po-create', chdir = 'ex4', stderr = None) test.must_exist( ['ex4', 'en.po'] ) test.must_exist( ['ex4', 'pl.po'] ) -test.must_contain( ['ex4', 'en.po'], "Hello from a.cpp") -test.must_contain( ['ex4', 'pl.po'], "Hello from a.cpp") +test.must_contain( ['ex4', 'en.po'], "Hello from a.cpp", mode='r') +test.must_contain( ['ex4', 'pl.po'], "Hello from a.cpp", mode='r') ############################################################################### # POInit: Example 5 @@ -178,10 +178,10 @@ test.must_exist( ['ex5', 'en.po'] ) test.must_exist( ['ex5', 'pl.po'] ) test.must_exist( ['ex5', 'de.po'] ) test.must_exist( ['ex5', 'fr.po'] ) -test.must_contain( ['ex5', 'en.po'], "Hello from a.cpp") -test.must_contain( ['ex5', 'pl.po'], "Hello from a.cpp") -test.must_contain( ['ex5', 'de.po'], "Hello from a.cpp") -test.must_contain( ['ex5', 'fr.po'], "Hello from a.cpp") +test.must_contain( ['ex5', 'en.po'], "Hello from a.cpp", mode='r') +test.must_contain( ['ex5', 'pl.po'], "Hello from a.cpp", mode='r') +test.must_contain( ['ex5', 'de.po'], "Hello from a.cpp", mode='r') +test.must_contain( ['ex5', 'fr.po'], "Hello from a.cpp", mode='r') ############################################################################### # POInit: Example 6 @@ -208,8 +208,8 @@ test.write(['ex6', 'foo.pot'], pot_contents) test.run(arguments = 'po-create', chdir = 'ex6', stderr = None) test.must_exist( ['ex6', 'en.po'] ) test.must_exist( ['ex6', 'pl.po'] ) -test.must_contain( ['ex6', 'en.po'], "Hello from a.cpp") -test.must_contain( ['ex6', 'pl.po'], "Hello from a.cpp") +test.must_contain( ['ex6', 'en.po'], "Hello from a.cpp", mode='r') +test.must_contain( ['ex6', 'pl.po'], "Hello from a.cpp", mode='r') test.pass_test() |