diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-09-08 10:52:24 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-09-22 21:27:59 +0900 |
commit | 3a2418a82728a138a3c08b084877f76984714254 (patch) | |
tree | a30e94b17f3657b627344f0d0b23f4c238c82c01 /tests/test_pycode.py | |
parent | 5ffce30d7527166e444d79e10a88e795d6a0b9c0 (diff) | |
download | sphinx-git-3a2418a82728a138a3c08b084877f76984714254.tar.gz |
refactoring: Drop PY2 and PY3 flags
Diffstat (limited to 'tests/test_pycode.py')
-rw-r--r-- | tests/test_pycode.py | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/tests/test_pycode.py b/tests/test_pycode.py index 2eab456bc..f35a57c59 100644 --- a/tests/test_pycode.py +++ b/tests/test_pycode.py @@ -12,8 +12,6 @@ import os import sys -from six import PY2 - import sphinx from sphinx.pycode import ModuleAnalyzer @@ -24,20 +22,14 @@ def test_ModuleAnalyzer_for_string(): analyzer = ModuleAnalyzer.for_string('print("Hello world")', 'module_name') assert analyzer.modname == 'module_name' assert analyzer.srcname == '<string>' - if PY2: - assert analyzer.encoding == 'ascii' - else: - assert analyzer.encoding is None + assert analyzer.encoding is None def test_ModuleAnalyzer_for_file(): analyzer = ModuleAnalyzer.for_string(SPHINX_MODULE_PATH, 'sphinx') assert analyzer.modname == 'sphinx' assert analyzer.srcname == '<string>' - if PY2: - assert analyzer.encoding == 'ascii' - else: - assert analyzer.encoding is None + assert analyzer.encoding is None def test_ModuleAnalyzer_for_module(): |