Closed
Description
In ESSS/pytest-regressions#64, running pytest with many plugins installed gives this error:
Direct construction of SpecModule has been deprecated, please use SpecModule.from_parent.
See https://docs.pytest.org/en/stable/deprecations.html#node-construction-changed-to-node-from-parent for more details.
And is not clear which plugin is the culprit, I had to look at the source code of pytest-relaxed
to figure it out.
We might consider at least show the full qualified name of the offending class in that message, so users would see pytest_relaxed.plugin.SpecModule
, which is a nudge in the right direction.
Originally posted by @nicoddemus in #8993 (comment)