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.
TestReport.when
TestReport.location
1 parent 9a7dbd8 commit 4056433Copy full SHA for 4056433
changelog/13345.bugfix.rst
@@ -0,0 +1 @@
1
+Fix type hints for :attr:`pytest.TestReport.when` and :attr:`pytest.TestReport.location`.
src/_pytest/reports.py
@@ -260,6 +260,9 @@ class TestReport(BaseReport):
260
"""
261
262
__test__ = False
263
+
264
+ when: Literal["setup", "call", "teardown"]
265
+ location: tuple[str, int | None, str]
266
# Defined by skipping plugin.
267
# xfail reason if xfailed, otherwise not defined. Use hasattr to distinguish.
268
wasxfail: str
0 commit comments