Skip to content

Commit 9bf22b8

Browse files
temporary ignore badly marked dist hook
1 parent f7d839d commit 9bf22b8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/_pytest/config/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,8 @@ def parse_hookspec_opts(self, module_or_class, name: str):
432432
"historic": hasattr(method, "historic")
433433
or "historic" in known_marks,
434434
}
435-
if any(opts.values()):
435+
# hook from xdist, fixing in ...
436+
if any(opts.values()) and method.__name__ != "pytest_handlecrashitem":
436437

437438
message = _pytest.deprecated.HOOK_LEGACY_MARKING.format(
438439
type="spec", fullname=method.__qualname__

0 commit comments

Comments
 (0)