summaryrefslogtreecommitdiff
path: root/tests/test_environment.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2016-07-15 00:21:25 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2016-07-15 00:30:44 +0900
commit736615c18c56f91beb7525f97ed8dabacc215ec4 (patch)
treea3d52f2afeec0e6b2931a6e63c5ab6764acb7221 /tests/test_environment.py
parent6686ebf1582b8a524af229492c7e8e1876d82d74 (diff)
downloadsphinx-git-736615c18c56f91beb7525f97ed8dabacc215ec4.tar.gz
Optimized tests: remove markups for warnings
Diffstat (limited to 'tests/test_environment.py')
-rw-r--r--tests/test_environment.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/tests/test_environment.py b/tests/test_environment.py
index b369d4609..f65a6f3f0 100644
--- a/tests/test_environment.py
+++ b/tests/test_environment.py
@@ -58,10 +58,6 @@ def test_images():
htmlbuilder = StandaloneHTMLBuilder(app)
htmlbuilder.imgpath = 'dummy'
htmlbuilder.post_process_images(tree)
- image_uri_message = "no matching candidate for image URI u'foo.*'"
- if PY3:
- image_uri_message = remove_unicode_literals(image_uri_message)
- assert image_uri_message in app._warning.content[-1]
assert set(htmlbuilder.images.keys()) == \
set(['subdir/img.png', 'img.png', 'subdir/simg.png', 'svgimg.svg',
'img.foo.png'])
@@ -71,7 +67,6 @@ def test_images():
app._warning.reset()
latexbuilder = LaTeXBuilder(app)
latexbuilder.post_process_images(tree)
- assert image_uri_message in app._warning.content[-1]
assert set(latexbuilder.images.keys()) == \
set(['subdir/img.png', 'subdir/simg.png', 'img.png', 'img.pdf',
'svgimg.pdf', 'img.foo.png'])