Skip to content

Commit 93d89bd

Browse files
:fixup: ignore xdist newhooks
1 parent 9bf22b8 commit 93d89bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_pytest/config/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ def parse_hookspec_opts(self, module_or_class, name: str):
433433
or "historic" in known_marks,
434434
}
435435
# hook from xdist, fixing in ...
436-
if any(opts.values()) and method.__name__ != "pytest_handlecrashitem":
436+
if any(opts.values()) and module_or_class.__name__ != "xdist.newhooks":
437437

438438
message = _pytest.deprecated.HOOK_LEGACY_MARKING.format(
439439
type="spec", fullname=method.__qualname__

0 commit comments

Comments
 (0)