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 c396557 commit 49ec2aeCopy full SHA for 49ec2ae
src/_pytest/config/__init__.py
@@ -1186,7 +1186,7 @@ def _warn_or_fail_if_strict(self, message: str) -> None:
1186
from _pytest.warnings import _issue_warning_captured
1187
1188
_issue_warning_captured(
1189
- PytestConfigWarning(message), self.hook, stacklevel=2,
+ PytestConfigWarning(message), self.hook, stacklevel=3,
1190
)
1191
1192
def _get_unknown_ini_keys(self) -> List[str]:
@@ -1375,7 +1375,7 @@ def _warn_about_missing_assertion(self, mode: str) -> None:
1375
"(are you using python -O?)\n"
1376
1377
1378
- PytestConfigWarning(warning_text), self.hook, stacklevel=2,
+ PytestConfigWarning(warning_text), self.hook, stacklevel=3,
1379
1380
1381
0 commit comments