Similarly to #7143, at work we have a project with a custom pytest.Class subclass, adding an additional argument to the constructor. All from_parent implementations in pytest accept and forward *kw, except Class (before this change) and DoctestItem - since I'm not familiar with doctest support, I've left the latter as-is.
2 lines
85 B
ReStructuredText
2 lines
85 B
ReStructuredText
Fix ``Class.from_parent`` so it forwards extra keyword arguments to the constructor.
|