Skip to content

CW-10: report unittest subtest failures and errors - #6

Merged
Pitan-andela merged 3 commits into
masterfrom
cw-10-python-3.14
Oct 30, 2026
Merged

Pitan-andela merged 3 commits into
masterfrom
cw-10-python-3.14

Conversation

@Pitan-andela

@Pitan-andela Pitan-andela commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

Failed unittest.subTest cases currently update unittest's internal failure state without emitting a Codewars failure marker or useful details. Add focused subtest reporting with the subtest parameters, escaped exception text and traceback, while retaining unittest's bookkeeping and one parent success for all-passing subtests.

Seven regressions passed on CPython 3.11.17 and 3.14.6 in Linux ARM64 containers, covering failures, errors, nested subtests, escaped multiline text, successful subtests and ordinary tests. The upstream CI run also passes on native AMD64 for Python 3.8, 3.10, 3.11 and exact 3.14.6. Candidate-image Exo integration confirms failed subtests reach the result parser and a Django 5.2 SQLite project passes; these runner checks used local AMD64 emulation.

Part of CW-10. Replaces #5 with the same runtime implementation on a branch in codewars/python-unittest. CI discovers tests directly in tests/, without an empty package marker. The candidate image pins the unchanged runtime implementation at upstream revision 703b960. Existing runtime images are unchanged. Draft for review.

@Pitan-andela
Pitan-andela marked this pull request as ready for review October 30, 2026 01:17
@Pitan-andela
Pitan-andela merged commit cddbfa2 into master Oct 30, 2026
8 checks passed
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.

2 participants