summaryrefslogtreecommitdiff
path: root/tests/test_setup_command.py
diff options
context:
space:
mode:
authorAdam Turner <9087854+aa-turner@users.noreply.github.com>2023-02-17 22:49:04 +0000
committerAdam Turner <9087854+aa-turner@users.noreply.github.com>2023-02-18 01:58:05 +0000
commitf6435a9bc3a265d76b8b0c2ff06740dc7377e800 (patch)
tree5d8d2103e3667c8e69f8c285998d67116947a57d /tests/test_setup_command.py
parentc8f4a03daceef4470ddbc34d5879ffd01588a116 (diff)
downloadsphinx-git-f6435a9bc3a265d76b8b0c2ff06740dc7377e800.tar.gz
Prefer ``@pytest.fixture()``
Diffstat (limited to 'tests/test_setup_command.py')
-rw-r--r--tests/test_setup_command.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_setup_command.py b/tests/test_setup_command.py
index 510515125..3f1ed6752 100644
--- a/tests/test_setup_command.py
+++ b/tests/test_setup_command.py
@@ -12,7 +12,7 @@ import sphinx
from sphinx.util.osutil import cd
-@pytest.fixture
+@pytest.fixture()
def setup_command(request, tempdir, rootdir):
"""
Run `setup.py build_sphinx` with args and kwargs,
@@ -65,7 +65,7 @@ def test_build_sphinx_multiple_invalid_builders(setup_command):
assert proc.returncode == 1
-@pytest.fixture
+@pytest.fixture()
def nonascii_srcdir(request, setup_command):
mb_name = '\u65e5\u672c\u8a9e'
srcdir = (setup_command.pkgroot / 'doc')