Skip to content

Commit

Permalink
Merge pull request #12434 from bluetech/register-fixture-scope-none
Browse files Browse the repository at this point in the history
fixtures: change `register_fixture` to not accept `scope=None`
  • Loading branch information
bluetech committed Jun 7, 2024
2 parents 8585c58 + c9d8765 commit db67107
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_pytest/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -1636,7 +1636,7 @@ def _register_fixture(
func: "_FixtureFunc[object]",
nodeid: Optional[str],
scope: Union[
Scope, _ScopeName, Callable[[str, Config], _ScopeName], None
Scope, _ScopeName, Callable[[str, Config], _ScopeName]
] = "function",
params: Optional[Sequence[object]] = None,
ids: Optional[
Expand Down

0 comments on commit db67107

Please sign in to comment.