mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
refactoring: Drop PY2 and PY3 flags
This commit is contained in:
@@ -14,7 +14,6 @@ from collections import Counter
|
||||
import pytest
|
||||
from packaging.specifiers import InvalidSpecifier
|
||||
from packaging.version import InvalidVersion
|
||||
from six import PY2
|
||||
|
||||
from sphinx.ext.doctest import is_allowed_version
|
||||
|
||||
@@ -112,9 +111,6 @@ def record(directive, part, should_skip):
|
||||
return 'Recorded {} {} {}'.format(directive, part, should_skip)
|
||||
|
||||
|
||||
@pytest.mark.xfail(
|
||||
PY2, reason='node.source points to document instead of filename',
|
||||
)
|
||||
@pytest.mark.sphinx('doctest', testroot='ext-doctest-with-autodoc')
|
||||
def test_reporting_with_autodoc(app, status, warning, capfd):
|
||||
# Patch builder to get a copy of the output
|
||||
|
||||
Reference in New Issue
Block a user