summaryrefslogtreecommitdiff
path: root/sphinx/testing
diff options
context:
space:
mode:
authorAdam Turner <9087854+aa-turner@users.noreply.github.com>2023-02-17 23:46:31 +0000
committerAdam Turner <9087854+aa-turner@users.noreply.github.com>2023-02-18 02:16:50 +0000
commit13442f690183cc2fb724c51af2321164b5ba749d (patch)
tree724024a1ad4d96fc3e22d3a180ee38a37efc0a3c /sphinx/testing
parentdc1a519a1d76c8fb18500b2093c07fa26c999333 (diff)
downloadsphinx-git-13442f690183cc2fb724c51af2321164b5ba749d.tar.gz
Fix pytest style issues
Diffstat (limited to 'sphinx/testing')
-rw-r--r--sphinx/testing/fixtures.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/testing/fixtures.py b/sphinx/testing/fixtures.py
index 8e6fe36b3..710cadcd8 100644
--- a/sphinx/testing/fixtures.py
+++ b/sphinx/testing/fixtures.py
@@ -198,7 +198,7 @@ def _shared_result_cache() -> None:
@pytest.fixture()
-def if_graphviz_found(app: SphinxTestApp) -> None:
+def if_graphviz_found(app: SphinxTestApp) -> None: # NoQA: PT004
"""
The test will be skipped when using 'if_graphviz_found' fixture and graphviz
dot command is not found.
@@ -233,7 +233,7 @@ def tempdir(tmpdir: str) -> util.path:
@pytest.fixture()
-def rollback_sysmodules():
+def rollback_sysmodules(): # NoQA: PT004
"""
Rollback sys.modules to its value before testing to unload modules
during tests.