diff options
author | Stephen Finucane <stephen@that.guru> | 2017-12-22 18:50:51 +0000 |
---|---|---|
committer | Stephen Finucane <stephen@that.guru> | 2017-12-29 13:02:31 +0000 |
commit | 7c0723fd46825ea44a98ae22ac45d08ca0ddd88b (patch) | |
tree | 4fe63fccb8c6f158b88d69193d926158ae3f53e2 /tests/test_pycode.py | |
parent | 529c96a3c991d167edd3f7181284b1f21315a486 (diff) | |
download | sphinx-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.py | 3 |
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' |