summaryrefslogtreecommitdiff
path: root/tests/test_project.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-05-23 02:08:09 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2020-05-27 02:44:53 +0900
commit36fd5bfa9a90d206995645c84d3b279bff5fab78 (patch)
tree922d98a73a062eafbbba33ee2f3da45ac626f10b /tests/test_project.py
parentd0779390d911241f8882e39e0e5c830fe5c5fcbd (diff)
downloadsphinx-git-36fd5bfa9a90d206995645c84d3b279bff5fab78.tar.gz
refactor test_project: PathComparer is unnecessary for this case
Diffstat (limited to 'tests/test_project.py')
-rw-r--r--tests/test_project.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_project.py b/tests/test_project.py
index a721d39fe..50b06f7b8 100644
--- a/tests/test_project.py
+++ b/tests/test_project.py
@@ -58,8 +58,8 @@ def test_project_path2doc(app):
assert project.path2doc('index.foo') is None # unknown extension
assert project.path2doc('index.foo.rst') == 'index.foo'
assert project.path2doc('index') is None
- assert project.path2doc('/path/to/index.rst') == PathComparer('/path/to/index')
- assert project.path2doc(app.srcdir / '/to/index.rst') == PathComparer('/to/index')
+ assert project.path2doc('path/to/index.rst') == 'path/to/index'
+ assert project.path2doc(app.srcdir / 'to/index.rst') == 'to/index'
@pytest.mark.sphinx(srcdir='project_doc2path', testroot='basic')