Skip to content

Commit 088f83f

Browse files
committed
implement @bluetech changes
1 parent 9f743e6 commit 088f83f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/_pytest/recwarn.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,11 +322,10 @@ def found_str():
322322
for w in self:
323323
if not self.matches(w):
324324
warnings.warn_explicit(
325-
message=w.message, # type: ignore[arg-type]
326-
category=None,
325+
message=w.message,
326+
category=w.category,
327327
filename=w.filename,
328328
lineno=w.lineno,
329-
module=w.__module__,
330329
source=w.source,
331330
)
332331
# Check warnings has valid argument type (#10865).

0 commit comments

Comments
 (0)