We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 478ace4 commit 83ca2ceCopy full SHA for 83ca2ce
src/_pytest/warning_types.py
@@ -148,6 +148,12 @@ def format(self, **kwargs: Any) -> _W:
148
149
150
def warn_explicit_for(method: FunctionType, message: PytestWarning) -> None:
151
+ """
152
+ Issue the warning :param:`message` for the definition of the given :param:`method`
153
+
154
+ this helps to log warnigns for functions defined prior to finding an issue with them
155
+ (like hook wrappers being marked in a legacy mechanism)
156
157
lineno = method.__code__.co_firstlineno
158
filename = inspect.getfile(method)
159
module = method.__module__
0 commit comments