Skip to content

Fix iterate_tests to handle non-TestSuite iterables like lists#584

Merged
jelmer merged 1 commit intomasterfrom
fix-iter-testscase
Mar 13, 2026
Merged

Fix iterate_tests to handle non-TestSuite iterables like lists#584
jelmer merged 1 commit intomasterfrom
fix-iter-testscase

Conversation

@jelmer
Copy link
Member

@jelmer jelmer commented Mar 13, 2026

iterate_tests was changed to use isinstance(unittest.TestSuite) instead of duck-typing with iter(), which broke callers like testscenarios that pass plain lists. Check for Iterable instead, excluding TestCase.

Fixes #583

iterate_tests was changed to use isinstance(unittest.TestSuite) instead
of duck-typing with iter(), which broke callers like testscenarios that
pass plain lists. Check for Iterable instead, excluding TestCase.

Fixes #583
@jelmer jelmer force-pushed the fix-iter-testscase branch from cd88704 to badf516 Compare March 13, 2026 14:23
@jelmer jelmer merged commit 8260ef7 into master Mar 13, 2026
18 checks passed
@jelmer jelmer deleted the fix-iter-testscase branch March 13, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7d62575 causes a regression in testscenarios

1 participant