summaryrefslogtreecommitdiff
path: root/tests/test_setup_command.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2022-05-03 02:05:24 +0900
committerGitHub <noreply@github.com>2022-05-03 02:05:24 +0900
commit81bb102cd1e12dba39d26fd000efda179b40160c (patch)
tree827a4de18e9763051b7c74278ac5d728a738c6f0 /tests/test_setup_command.py
parent96b15e9e66bd4bc1079d983bf6be19d1e9aa7134 (diff)
parentf95bcf51efe2ec1ebf6a251322b37a6caf4e2aac (diff)
downloadsphinx-git-81bb102cd1e12dba39d26fd000efda179b40160c.tar.gz
Merge pull request #10361 from AA-Turner/split-coverage
Only test with coverage on pushes to `sphinx-doc/sphinx`
Diffstat (limited to 'tests/test_setup_command.py')
-rw-r--r--tests/test_setup_command.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/test_setup_command.py b/tests/test_setup_command.py
index a56f9d4a3..ef364676c 100644
--- a/tests/test_setup_command.py
+++ b/tests/test_setup_command.py
@@ -18,10 +18,7 @@ def setup_command(request, tempdir, rootdir):
Run `setup.py build_sphinx` with args and kwargs,
pass it to the test and clean up properly.
"""
- if hasattr(request.node, 'get_closest_marker'): # pytest-3.6.0 or newer
- marker = request.node.get_closest_marker('setup_command')
- else:
- marker = request.node.get_marker('setup_command')
+ marker = request.node.get_closest_marker('setup_command')
args = marker.args if marker else []
pkgrootdir = tempdir / 'test-setup'