summaryrefslogtreecommitdiff
path: root/tests/test_pycode.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-01-13 15:26:21 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-01-13 15:26:21 +0900
commit6d29b3814037a506750c404413ebcc5d78e1857c (patch)
treed5c57d29824df3a9b1bd095c9a3018069aaf078b /tests/test_pycode.py
parent19efb4a39810f1035d9d891f26154c74c6b54a89 (diff)
parent822a04de9c407c5263e7e94eb9ab5a6602cb2861 (diff)
downloadsphinx-git-6d29b3814037a506750c404413ebcc5d78e1857c.tar.gz
Merge branch 'master' into sphinx-build-set-proc-count-to-cpu-count
Diffstat (limited to 'tests/test_pycode.py')
-rw-r--r--tests/test_pycode.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_pycode.py b/tests/test_pycode.py
index 2b5ae1514..400c47dc5 100644
--- a/tests/test_pycode.py
+++ b/tests/test_pycode.py
@@ -41,7 +41,8 @@ def test_ModuleAnalyzer_for_file():
def test_ModuleAnalyzer_for_module():
analyzer = ModuleAnalyzer.for_module('sphinx')
assert analyzer.modname == 'sphinx'
- assert analyzer.srcname == SPHINX_MODULE_PATH
+ assert analyzer.srcname in (SPHINX_MODULE_PATH,
+ os.path.abspath(SPHINX_MODULE_PATH))
assert analyzer.encoding == 'utf-8'