-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
good first issueeasy issue that is friendly to new contributoreasy issue that is friendly to new contributortype: docsdocumentation improvement, missing or needing clarificationdocumentation improvement, missing or needing clarification
Description
This warning:
pytest/src/_pytest/deprecated.py
Lines 23 to 26 in cd67c2a
FILLFUNCARGS = PytestDeprecationWarning( | |
"The `_fillfuncargs` function is deprecated, use " | |
"function._request._fillfixtures() instead if you cannot avoid reaching into internals." | |
) |
...is raised from:
pytest/src/_pytest/fixtures.py
Lines 342 to 344 in cd67c2a
def fillfixtures(function: "Function") -> None: | |
"""Fill missing funcargs for a test function.""" | |
warnings.warn(FILLFUNCARGS, stacklevel=2) |
...suggesting the former is wrong, and super confusing when you're trying to track down where a warning is coming from in a plugin.
Related: what is the public and approved way for pytest plugins to explicitly request fixtures now?
I do this dance currently, but I've always wished for something more pleasant:
Metadata
Metadata
Assignees
Labels
good first issueeasy issue that is friendly to new contributoreasy issue that is friendly to new contributortype: docsdocumentation improvement, missing or needing clarificationdocumentation improvement, missing or needing clarification