Skip to content

Commit 39222fd

Browse files
:fixup: ignore xdist plugins
1 parent a379efa commit 39222fd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/_pytest/config/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -407,9 +407,9 @@ def parse_hookimpl_opts(self, plugin: _PluggyPlugin, name: str):
407407
name: hasattr(method, name) or name in known_marks
408408
for name in ("tryfirst", "trylast", "optionalhook", "hookwrapper")
409409
}
410-
if any(opts.values()) and not getattr(plugin, "__name__", "").startswith(
411-
"xdist."
412-
):
410+
if any(opts.values()) and not getattr(
411+
plugin, "__module__", getattr(plugin, "__name__")
412+
).startswith("xdist."):
413413
message = _pytest.deprecated.HOOK_LEGACY_MARKING.format(
414414
type="spec", fullname=method.__qualname__
415415
)

0 commit comments

Comments
 (0)