Skip to content

Commit c3fcc9a

Browse files
committed
assert
1 parent bbd80ef commit c3fcc9a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/_pytest/terminal.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,9 @@ def pytest_runtest_logfinish(self, nodeid):
468468

469469
is_last_item = self._numreported == self._session.testscollected
470470
if is_last_item:
471+
if hasattr(self, "_last_item_reported"):
472+
assert 0, self._last_item_reported
473+
self._last_item_reported = nodeid
471474
self._write_progress_information_filling_space(color=main_color)
472475
else:
473476
w = self._width_of_current_line

0 commit comments

Comments
 (0)