mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-09-18 10:23:43 +08:00
test_runner: collect parameterized_class tests instead of skipping them with their base (#38820)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user