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 f42b68c commit 5822888Copy full SHA for 5822888
src/_pytest/runner.py
@@ -120,6 +120,8 @@ def runtestprotocol(
120
) -> List[TestReport]:
121
hasrequest = hasattr(item, "_request")
122
if hasrequest and not item._request: # type: ignore[attr-defined]
123
+ # This only happens if the item is re-run, as is done by
124
+ # pytest-rerunfailures.
125
item._initrequest() # type: ignore[attr-defined]
126
rep = call_and_report(item, "setup", log)
127
reports = [rep]
0 commit comments