Mark tests as xfail/skip to allow successful run

This commit is contained in:
Andy Neebel
2017-06-14 13:26:15 -05:00
parent c1a6579eb6
commit f68c108f10
10 changed files with 38 additions and 0 deletions

View File

@@ -10,6 +10,7 @@
"""
import re
import sys
import pytest
from sphinx.testing.path import path
@@ -72,6 +73,9 @@ def test_texinfo(app, status, warning):
@pytest.mark.sphinx('html', testroot='docutilsconf',
docutilsconf='[general]\nsource_link=true\n')
@pytest.mark.skip(sys.platform == "win32" and \
not (sys.version_info.major >= 3 and sys.version_info.minor >= 2),
reason="Python < 3.2 on Win32 doesn't handle non-ASCII paths right")
def test_docutils_source_link_with_nonascii_file(app, status, warning):
srcdir = path(app.srcdir)
mb_name = u'\u65e5\u672c\u8a9e'