mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
refactor: Drop six.PY2
This commit is contained in:
parent
aaf0046f44
commit
e789080b54
@ -15,8 +15,6 @@ import tempfile
|
||||
import pytest
|
||||
from mock import patch
|
||||
|
||||
from six import PY2
|
||||
|
||||
import sphinx
|
||||
from sphinx.errors import PycodeError
|
||||
from sphinx.testing.util import strip_escseq
|
||||
@ -65,9 +63,6 @@ def test_display_chunk():
|
||||
|
||||
|
||||
def test_get_module_source():
|
||||
if PY2:
|
||||
assert get_module_source('sphinx') == ('file', sphinx.__file__.replace('.pyc', '.py'))
|
||||
else:
|
||||
assert get_module_source('sphinx') == ('file', sphinx.__file__)
|
||||
|
||||
# failed to obtain source information from builtin modules
|
||||
|
Loading…
Reference in New Issue
Block a user