Fix test_env by supplying a dummy imgpath to the HTML builder.

This commit is contained in:
Georg Brandl
2012-07-29 19:27:28 +02:00
parent 5da7c75842
commit 9814097315

View File

@@ -54,6 +54,7 @@ def test_images():
tree = env.get_doctree('images')
app._warning.reset()
htmlbuilder = StandaloneHTMLBuilder(app)
htmlbuilder.imgpath = 'dummy'
htmlbuilder.post_process_images(tree)
image_uri_message = "no matching candidate for image URI u'foo.*'"
if sys.version_info >= (3, 0):