summaryrefslogtreecommitdiff
path: root/tests/test_util.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-12-16 00:32:10 +0900
committerGitHub <noreply@github.com>2018-12-16 00:32:10 +0900
commitc70e65fc6cd04d02df4f7911025f534dbd27cc20 (patch)
tree1e8614ac5516dace99ef1df4d203081662c7c2d6 /tests/test_util.py
parentd6d4406ce987cc8823d1b3a33be3a418bcd2a59d (diff)
parent79eec90f36f5a74e24cfd6740126396fd6567e07 (diff)
downloadsphinx-git-c70e65fc6cd04d02df4f7911025f534dbd27cc20.tar.gz
Merge branch 'master' into 5770_doctest_refers_highlight_language
Diffstat (limited to 'tests/test_util.py')
-rw-r--r--tests/test_util.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/test_util.py b/tests/test_util.py
index b07ee1229..d5305c0a6 100644
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -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,10 +63,7 @@ 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__)
+ assert get_module_source('sphinx') == ('file', sphinx.__file__)
# failed to obtain source information from builtin modules
with pytest.raises(PycodeError):