aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '_pytest/runner.py')
-rw-r--r--_pytest/runner.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/_pytest/runner.py b/_pytest/runner.py
index 048ca1dd9b..f9f203ffab 100644
--- a/_pytest/runner.py
+++ b/_pytest/runner.py
@@ -47,6 +47,8 @@ def pytest_terminal_summary(terminalreporter):
def pytest_sessionstart(session):
session._setupstate = SetupState()
+def pytest_sessionfinish(session):
+ session._setupstate.teardown_all()
class NodeInfo:
def __init__(self, location):