Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Class.from_parent to forward custom parameters to the constructor #8367

Merged
merged 2 commits into from
Feb 23, 2021

Commits on Feb 23, 2021

  1. Allow Class.from_parent to forward custom parameters to the constructor

    Similarly to pytest-dev#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.
    The-Compiler committed Feb 23, 2021
    Configuration menu
    Copy the full SHA
    54a154c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3b7fc2c View commit details
    Browse the repository at this point in the history