runner: inline SetupState._teardown_towards()

Doesn't add much.
This commit is contained in:
Ran Benita 2020-12-30 17:33:09 +02:00
parent 410622f719
commit 42ae8180dd
1 changed files with 0 additions and 3 deletions

View File

@ -463,9 +463,6 @@ class SetupState:
def teardown_exact(self, item: Item, nextitem: Optional[Item]) -> None:
needed_collectors = nextitem and nextitem.listchain() or []
self._teardown_towards(needed_collectors)
def _teardown_towards(self, needed_collectors: List[Node]) -> None:
exc = None
while self.stack:
if self.stack == needed_collectors[: len(self.stack)]: