Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronzo authored Oct 16, 2024
1 parent 66a097c commit 7179d49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_pytest/recwarn.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def __enter__(self) -> Self:
if isinstance(message, str):
kw.update(message=message)

Check warning on line 266 in src/_pytest/recwarn.py

View check run for this annotation

Codecov / codecov/patch

src/_pytest/recwarn.py#L266

Added line #L266 was not covered by tests
if module is not None:
module = cast(str, re.Pattern, module)
module = cast(str | re.Pattern, module)
if isinstance(module, re.Pattern):
module = getattr(module, "pattern", None)
if isinstance(module, str):
Expand Down

0 comments on commit 7179d49

Please sign in to comment.