summaryrefslogtreecommitdiff
path: root/tests/test_pycode.py
diff options
context:
space:
mode:
authorStephen Finucane <stephen@that.guru>2017-12-22 18:50:51 +0000
committerStephen Finucane <stephen@that.guru>2017-12-29 13:02:31 +0000
commit7c0723fd46825ea44a98ae22ac45d08ca0ddd88b (patch)
tree4fe63fccb8c6f158b88d69193d926158ae3f53e2 /tests/test_pycode.py
parent529c96a3c991d167edd3f7181284b1f21315a486 (diff)
downloadsphinx-git-7c0723fd46825ea44a98ae22ac45d08ca0ddd88b.tar.gz
tests: Remove 'tests/run.py'
This is no longer necessary. One test needs to be modified to deal with how 'python -m pytest' modifies the PATH. Signed-off-by: Stephen Finucane <stephen@that.guru>
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'