Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unittest: Allow SkipTest to work within a subTest. #935

Merged
merged 2 commits into from
Nov 7, 2024

Conversation

dpgeorge
Copy link
Member

@dpgeorge dpgeorge commented Nov 6, 2024

This refactors things slightly so that SkipTest exceptions are handled correctly within a sub-test context manager.

Also enabled unittest tests on CI.

@dpgeorge dpgeorge requested a review from andrewleech November 6, 2024 00:15
@andrewleech
Copy link
Contributor

This looks good, the new location for the skip check makes far more sense in general really.

The test results are visible in CI.
Screenshot_20241106-205851.png

@dpgeorge dpgeorge force-pushed the unittest-skip-subtest branch from d0840ac to 0104788 Compare November 7, 2024 01:51
@dpgeorge
Copy link
Member Author

dpgeorge commented Nov 7, 2024

Thanks for the review!

@dpgeorge dpgeorge merged commit 0104788 into micropython:master Nov 7, 2024
4 checks passed
@dpgeorge dpgeorge deleted the unittest-skip-subtest branch November 7, 2024 01:53
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