summaryrefslogtreecommitdiff
path: root/tests/test_pycode.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-01-08 14:17:08 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-01-08 14:17:08 +0900
commit1c0a5ee55d45b1332e04011e0d5cc3c7c1c44a6c (patch)
tree5a3c16262c051372933c1a1612cbc1ff8dd77ac3 /tests/test_pycode.py
parent9a6ad38e2d23a7285d15d967e9d1eb5dcd2e2cfb (diff)
parent06ebc3f8645c5b40fa507e340f582ed7384024c7 (diff)
downloadsphinx-git-1c0a5ee55d45b1332e04011e0d5cc3c7c1c44a6c.tar.gz
Merge branch 'master' into refactor_AutoDirective
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'