diff options
Diffstat (limited to 'tests/test_build_html.py')
-rw-r--r-- | tests/test_build_html.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_build_html.py b/tests/test_build_html.py index b2533629d..ceeb5f01c 100644 --- a/tests/test_build_html.py +++ b/tests/test_build_html.py @@ -147,7 +147,7 @@ def check_extra_entries(outdir): @pytest.mark.sphinx('html', testroot='warnings') def test_html_warnings(app, warning): app.build() - html_warnings = strip_escseq(warning.getvalue().replace(os.sep, '/')) + html_warnings = strip_escseq(re.sub(re.escape(os.sep) + '{1,2}', '/', warning.getvalue())) html_warnings_exp = HTML_WARNINGS % { 'root': re.escape(app.srcdir.replace(os.sep, '/'))} assert re.match(html_warnings_exp + '$', html_warnings), \ @@ -1167,6 +1167,7 @@ def test_html_entity(app): @pytest.mark.sphinx('html', testroot='basic') +@pytest.mark.xfail(os.name != 'posix', reason="Not working on windows") def test_html_inventory(app): app.builder.build_all() with open(app.outdir / 'objects.inv', 'rb') as f: |