summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2018-08-10 17:28:47 (GMT)
committerGitHub <noreply@github.com>2018-08-10 17:28:47 (GMT)
commit4f1c86073e7c1fd9e5a1a213b74854d4d615e5ee (patch)
treee77a8cecb285b4adeb3ccb4bbd56bfeed9ef8b3a /test
parent54b8b818de86fdf3cd34fa4eb4bb34ec8f29911d (diff)
parent0cf044543fb089bcd997b3ad2d877b71026ce5bf (diff)
downloadSCons-4f1c86073e7c1fd9e5a1a213b74854d4d615e5ee.zip
SCons-4f1c86073e7c1fd9e5a1a213b74854d4d615e5ee.tar.gz
SCons-4f1c86073e7c1fd9e5a1a213b74854d4d615e5ee.tar.bz2
Merge pull request #3161 from mwichmann/test_must_contain
Testing: python 3 fix for must_contain
Diffstat (limited to 'test')
-rw-r--r--test/Docbook/basic/xinclude/xinclude.py2
-rw-r--r--test/Docbook/dependencies/xinclude/xinclude.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/Docbook/basic/xinclude/xinclude.py b/test/Docbook/basic/xinclude/xinclude.py
index 302c777..9b22c13 100644
--- a/test/Docbook/basic/xinclude/xinclude.py
+++ b/test/Docbook/basic/xinclude/xinclude.py
@@ -44,7 +44,7 @@ test.dir_fixture('image')
# Normal invocation
test.run()
test.must_exist(test.workpath('manual_xi.xml'))
-test.must_contain(test.workpath('manual_xi.xml'),'<para>This is an included text.')
+test.must_contain(test.workpath('manual_xi.xml'),'<para>This is an included text.', mode='r')
# Cleanup
diff --git a/test/Docbook/dependencies/xinclude/xinclude.py b/test/Docbook/dependencies/xinclude/xinclude.py
index 115163c..c3d9e25 100644
--- a/test/Docbook/dependencies/xinclude/xinclude.py
+++ b/test/Docbook/dependencies/xinclude/xinclude.py
@@ -44,7 +44,7 @@ test.dir_fixture('image')
# Normal invocation
test.run()
test.must_exist(test.workpath('manual_xi.xml'))
-test.must_contain(test.workpath('manual_xi.xml'),'<para>This is an included text.')
+test.must_contain(test.workpath('manual_xi.xml'),'<para>This is an included text.', mode='r')
# Change included file
test.write('include.txt', 'This is another text.')