From 4d2b62c789cd69579074110605269fe2551b7928 Mon Sep 17 00:00:00 2001 From: Noah Negin-Ulster Date: Sun, 29 Aug 2021 11:28:55 -0400 Subject: [PATCH] fix: filter ran items using selected items, close #451 --- src/syrupy/session.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/syrupy/session.py b/src/syrupy/session.py index 75ec29ad..5bfcbbb4 100644 --- a/src/syrupy/session.py +++ b/src/syrupy/session.py @@ -64,7 +64,8 @@ def start(self) -> None: self._locations_discovered = defaultdict(set) def ran_item(self, nodeid: str) -> None: - self._selected_items[nodeid] = True + if nodeid in self._selected_items: + self._selected_items[nodeid] = True def finish(self) -> int: exitstatus = 0