diff options
Diffstat (limited to 'tests/test_docutilsconf.py')
-rw-r--r-- | tests/test_docutilsconf.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/test_docutilsconf.py b/tests/test_docutilsconf.py index d2b56d30d..91bf8fc95 100644 --- a/tests/test_docutilsconf.py +++ b/tests/test_docutilsconf.py @@ -14,7 +14,6 @@ import sys import pytest from sphinx.testing.path import path -from sphinx.testing.util import SkipTest def regex_count(expr, result): @@ -73,7 +72,7 @@ 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 \ +@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): @@ -83,7 +82,7 @@ def test_docutils_source_link_with_nonascii_file(app, status, warning): (srcdir / (mb_name + '.txt')).write_text('') except UnicodeEncodeError: from sphinx.testing.path import FILESYSTEMENCODING - raise SkipTest( + raise pytest.skip.Exception( 'nonascii filename not supported on this filesystem encoding: ' '%s', FILESYSTEMENCODING) |