summaryrefslogtreecommitdiffstats
path: root/test/gettext/Translate/UserExamples.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/gettext/Translate/UserExamples.py')
-rw-r--r--test/gettext/Translate/UserExamples.py28
1 files changed, 14 insertions, 14 deletions
diff --git a/test/gettext/Translate/UserExamples.py b/test/gettext/Translate/UserExamples.py
index 384b96d..d7220a3 100644
--- a/test/gettext/Translate/UserExamples.py
+++ b/test/gettext/Translate/UserExamples.py
@@ -65,10 +65,10 @@ test.write(['ex1', 'b.cpp'], """ gettext("Hello from b.cpp") """)
test.run(arguments = 'po-update', chdir = path.join('ex1','po'), stderr = None)
test.must_exist( ['ex1', 'po', 'en.po'] )
test.must_exist( ['ex1', 'po', 'pl.po'] )
-test.must_contain( ['ex1', 'po', 'en.po'], "Hello from a.cpp" )
-test.must_contain( ['ex1', 'po', 'en.po'], "Hello from b.cpp" )
-test.must_contain( ['ex1', 'po', 'pl.po'], "Hello from a.cpp" )
-test.must_contain( ['ex1', 'po', 'pl.po'], "Hello from b.cpp" )
+test.must_contain( ['ex1', 'po', 'en.po'], "Hello from a.cpp", mode='r' )
+test.must_contain( ['ex1', 'po', 'en.po'], "Hello from b.cpp", mode='r' )
+test.must_contain( ['ex1', 'po', 'pl.po'], "Hello from a.cpp", mode='r' )
+test.must_contain( ['ex1', 'po', 'pl.po'], "Hello from b.cpp", mode='r' )
#############################################################################
# Translate: Example 2
@@ -100,10 +100,10 @@ test.write(['ex2', 'b.cpp'], """ gettext("Hello from b.cpp") """)
test.run(arguments = 'po-update', chdir = path.join('ex2','po'), stderr = None)
test.must_exist( ['ex2', 'po', 'en.po'] )
test.must_exist( ['ex2', 'po', 'pl.po'] )
-test.must_contain( ['ex2', 'po', 'en.po'], "Hello from a.cpp" )
-test.must_contain( ['ex2', 'po', 'en.po'], "Hello from b.cpp" )
-test.must_contain( ['ex2', 'po', 'pl.po'], "Hello from a.cpp" )
-test.must_contain( ['ex2', 'po', 'pl.po'], "Hello from b.cpp" )
+test.must_contain( ['ex2', 'po', 'en.po'], "Hello from a.cpp", mode='r' )
+test.must_contain( ['ex2', 'po', 'en.po'], "Hello from b.cpp", mode='r' )
+test.must_contain( ['ex2', 'po', 'pl.po'], "Hello from a.cpp", mode='r' )
+test.must_contain( ['ex2', 'po', 'pl.po'], "Hello from b.cpp", mode='r' )
#############################################################################
# Translate: Example 3
@@ -157,12 +157,12 @@ test.must_not_exist( ['ex3', 'build', 'po', 'messages.pot'] )
test.must_not_exist( ['ex3', 'build', 'po', 'en.po'] )
test.must_not_exist( ['ex3', 'build', 'po', 'pl.po'] )
#
-test.must_contain( ['ex3', 'src', 'po', 'messages.pot'], "Hello from a.cpp" )
-test.must_contain( ['ex3', 'src', 'po', 'messages.pot'], "Hello from b.cpp" )
-test.must_contain( ['ex3', 'src', 'po', 'en.po'], "Hello from a.cpp" )
-test.must_contain( ['ex3', 'src', 'po', 'en.po'], "Hello from b.cpp" )
-test.must_contain( ['ex3', 'src', 'po', 'pl.po'], "Hello from a.cpp" )
-test.must_contain( ['ex3', 'src', 'po', 'pl.po'], "Hello from b.cpp" )
+test.must_contain( ['ex3', 'src', 'po', 'messages.pot'], "Hello from a.cpp", mode='r' )
+test.must_contain( ['ex3', 'src', 'po', 'messages.pot'], "Hello from b.cpp", mode='r' )
+test.must_contain( ['ex3', 'src', 'po', 'en.po'], "Hello from a.cpp", mode='r' )
+test.must_contain( ['ex3', 'src', 'po', 'en.po'], "Hello from b.cpp", mode='r' )
+test.must_contain( ['ex3', 'src', 'po', 'pl.po'], "Hello from a.cpp", mode='r' )
+test.must_contain( ['ex3', 'src', 'po', 'pl.po'], "Hello from b.cpp", mode='r' )
test.run(arguments = '.', chdir = 'ex3', stderr = None)
test.must_exist( ['ex3', 'build', 'po', 'en.mo'] )