From e789080b543902b04d38a55c3bf7fd9c844158c6 Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Sat, 15 Dec 2018 20:08:39 +0900 Subject: [PATCH] refactor: Drop six.PY2 --- tests/test_util.py | 7 +------ 1 file changed, 1 insertion(+), 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):