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 652e98e commit 88ed6e1Copy full SHA for 88ed6e1
codeflash/verification/pytest_plugin.py
@@ -137,6 +137,9 @@ def pytest_runtestloop(self, session: Session) -> bool:
137
item._nodeid = self._set_nodeid(item._nodeid, count)
138
139
next_item: pytest.Item = session.items[index + 1] if index + 1 < len(session.items) else None
140
+
141
+ self._clear_lru_caches(item)
142
143
item.config.hook.pytest_runtest_protocol(item=item, nextitem=next_item)
144
if session.shouldfail:
145
raise session.Failed(session.shouldfail)
@@ -199,6 +202,7 @@ def _clear_cache_for_object(obj: Any) -> None: # noqa: ANN401
199
202
pass
200
203
except Exception: # noqa: BLE001, S110
201
204
205
206
def _set_nodeid(self, nodeid: str, count: int) -> str:
207
"""Set loop count when using duration.
208
0 commit comments