aboutsummaryrefslogtreecommitdiff
path: root/tests/mammoth_tests.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2013-12-01 20:37:02 +0000
committerMichael Williamson <mike@zwobble.org>2013-12-01 20:37:02 +0000
commitb167af309185c04815c07271b7f8ed8db1d485db (patch)
treeb316c0ed563d16ec42439d03bbab651cee4ce67e /tests/mammoth_tests.py
parent7a9484ee7f85a0c986f620c5d3cbbd2b11d28df8 (diff)
Open files in binary mode
Diffstat (limited to 'tests/mammoth_tests.py')
-rw-r--r--tests/mammoth_tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/mammoth_tests.py b/tests/mammoth_tests.py
index 4550d91..d1492b3 100644
--- a/tests/mammoth_tests.py
+++ b/tests/mammoth_tests.py
@@ -7,7 +7,7 @@ import mammoth
@istest
def docx_containing_one_paragraph_is_converted_to_single_p_element():
- with open(test_path("single-paragraph.docx")) as fileobj:
+ with open(test_path("single-paragraph.docx"), "rb") as fileobj:
result = mammoth.convert_to_html(fileobj=fileobj)
assert_equal("<p>Walking on imported air</p>", result.value)
assert_equal([], result.messages)