From ab056304371cb721e781b0f39235905a43bfa291 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Tue, 14 Feb 2023 21:02:33 -0500 Subject: [PATCH] fix an apparent typo in teardown --- pytest_subtests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytest_subtests.py b/pytest_subtests.py index c275035..9ac3985 100644 --- a/pytest_subtests.py +++ b/pytest_subtests.py @@ -88,7 +88,7 @@ def pytest_configure(config): def pytest_unconfigure(): - if hasattr(TestCaseFunction, "_addSubTest"): + if hasattr(TestCaseFunction, "addSubTest"): del TestCaseFunction.addSubTest if hasattr(TestCaseFunction, "failfast"): del TestCaseFunction.failfast