Skip to content

Commit 8d3dff0

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 29fb481 commit 8d3dff0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pytest_asyncio/plugin.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,7 @@ def _validate_scope(scope: str | None, option_name: str) -> None:
242242

243243
def pytest_configure(config: Config) -> None:
244244
default_fixture_loop_scope = config.getini("asyncio_default_fixture_loop_scope")
245-
_validate_scope(
246-
default_fixture_loop_scope, "asyncio_default_fixture_loop_scope"
247-
)
245+
_validate_scope(default_fixture_loop_scope, "asyncio_default_fixture_loop_scope")
248246
if not default_fixture_loop_scope:
249247
warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))
250248

tests/test_fixture_loop_scopes.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ def test_invalid_default_fixture_loop_scope_raises_error(pytester: Pytester):
146146
"""
147147
)
148148
result = pytester.runpytest()
149-
result.stderr.fnmatch_lines([
150-
"ERROR: 'invalid_scope' is not a valid asyncio_default_fixture_loop_scope. Valid scopes are: function, class, module, package, session."
151-
])
149+
result.stderr.fnmatch_lines(
150+
[
151+
"ERROR: 'invalid_scope' is not a valid asyncio_default_fixture_loop_scope. Valid scopes are: function, class, module, package, session."
152+
]
153+
)

0 commit comments

Comments
 (0)