Skip to content

Commit

Permalink
made xinclude tests for docbook py3 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
dmoody256 committed Dec 28, 2017
1 parent 61d3cec commit b1d21ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/Docbook/basic/xinclude/xinclude.py
Expand Up @@ -44,7 +44,7 @@
# 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'),b'<para>This is an included text.')


# Cleanup
Expand Down
4 changes: 2 additions & 2 deletions test/Docbook/dependencies/xinclude/xinclude.py
Expand Up @@ -44,7 +44,7 @@
# 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'),b'<para>This is an included text.')

# Change included file
test.write('include.txt', 'This is another text.')
Expand All @@ -55,7 +55,7 @@
# The new file should contain the changes
test.run()
test.must_exist(test.workpath('manual_xi.xml'))
test.must_contain(test.workpath('manual_xi.xml'),'<para>This is another text.')
test.must_contain(test.workpath('manual_xi.xml'),b'<para>This is another text.')

test.pass_test()

Expand Down

0 comments on commit b1d21ec

Please sign in to comment.