aboutsummaryrefslogtreecommitdiff
path: root/tests/mammoth_tests.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2015-09-06 18:08:58 +0100
committerMichael Williamson <mike@zwobble.org>2015-09-06 18:08:58 +0100
commit256806a3dd10ccdfb1295181d09af7655c05fa29 (patch)
tree682532ac1eaf1718c03430e5b61e20dfe6b03d7d /tests/mammoth_tests.py
parentcff7a81ce9c49971ca94fc8fe74430338e563836 (diff)
Capture errors on trying to open file URIs
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 f29ae0f..906f49b 100644
--- a/tests/mammoth_tests.py
+++ b/tests/mammoth_tests.py
@@ -96,7 +96,7 @@ def warn_if_images_stored_outside_of_document_are_not_found():
with open(document_path, "rb") as fileobj:
result = mammoth.convert_to_html(fileobj=fileobj)
assert_equal("", result.value)
- expected_warning = "could not open external image 'tiny-picture.png' from document directory '{0}'\n[Errno 2] No such file or directory".format(temp_dir.path)
+ expected_warning = "could not open external image: 'tiny-picture.png'"
assert_equal("warning", result.messages[0].type)
assert result.messages[0].message.startswith(expected_warning), "message was: " + result.messages[0].message
assert_equal(1, len(result.messages))