aboutsummaryrefslogtreecommitdiff
path: root/tests/docx
diff options
context:
space:
mode:
Diffstat (limited to 'tests/docx')
-rw-r--r--tests/docx/docx_tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/docx/docx_tests.py b/tests/docx/docx_tests.py
index 15bca51..ea69dc2 100644
--- a/tests/docx/docx_tests.py
+++ b/tests/docx/docx_tests.py
@@ -8,7 +8,7 @@ from ..testing import test_path
class ReadTests(object):
@istest
def can_read_document_with_single_paragraph_with_single_run_of_text(self):
- with open(test_path("single-paragraph.docx")) as fileobj:
+ with open(test_path("single-paragraph.docx"), "rb") as fileobj:
result = docx.read(fileobj=fileobj)
expected_document = documents.document([
documents.paragraph([