test_runner: collect parameterized_class tests instead of skipping them with their base (#38820)

This commit is contained in:
Harsh Singh
2026-09-13 03:00:51 +05:30
committed by GitHub
parent 19f0f69d85
commit 39146cb240
+1 -1
View File
@@ -170,7 +170,7 @@ def collect(targets, keyword):
cls = type(test)
if cls.__name__ == "_FailedTest":
continue
if getattr(cls, "__unittest_skip_why__", "") == "parameterized base class":
if cls.__dict__.get("__unittest_skip_why__", "") == "parameterized base class":
continue
if not keyword or keyword.lower() in test.id().lower():
tests.append(test)