runner: inline SetupState._pop_and_teardown()

This will enable a simplification in the next commit.
This commit is contained in:
Ran Benita
2021-01-01 12:51:33 +02:00
parent 2b14edb108
commit d1fcd425a3
2 changed files with 18 additions and 21 deletions

View File

@@ -28,7 +28,7 @@ class TestSetupState:
ss.prepare(item)
ss.addfinalizer(values.pop, colitem=item)
assert values
ss._pop_and_teardown()
ss.teardown_exact(None)
assert not values
def test_teardown_exact_stack_empty(self, pytester: Pytester) -> None: