From f6435a9bc3a265d76b8b0c2ff06740dc7377e800 Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Fri, 17 Feb 2023 22:49:04 +0000 Subject: Prefer ``@pytest.fixture()`` --- tests/test_setup_command.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test_setup_command.py') 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') -- cgit v1.2.1