diff --git a/tests/test_build_html.py b/tests/test_build_html.py
index 93aa41d41..77808f88d 100644
--- a/tests/test_build_html.py
+++ b/tests/test_build_html.py
@@ -40,7 +40,8 @@ http://www.python.org/logo.png
%(root)s/includes.txt:\\d*: WARNING: Encoding 'utf-8-sig' used for \
reading included file u'.*?wrongenc.inc' seems to be wrong, try giving an \
:encoding: option\\n?
-%(root)s/includes.txt:4: WARNING: download file not readable: nonexisting.png
+(%(root)s/includes.txt|None):4: WARNING: download file not readable: \
+nonexisting.png
%(root)s/objects.txt:\\d*: WARNING: using old C markup; please migrate to \
new-style markup \(e.g. c:function instead of cfunction\), see \
http://sphinx.pocoo.org/domains.html