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

work around Python 3.12 no longer calling startTest for skipped tests #159

Merged
merged 1 commit into from
Dec 20, 2023

Conversation

d-maurer
Copy link
Contributor

Fixes #157.

This is an alternative to #158.

The PR checks in addSkip whether startTest has already been called (pre 3.12); if not, it sets up the required state usually established by startTest.
It keeps the pre 3.12 way to count skipped tests as run tests (to avoid complex version dependent changes for the stupid doctests).

@d-maurer d-maurer requested review from icemac and mgedmin December 20, 2023 10:56
Copy link
Member

@mgedmin mgedmin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@d-maurer d-maurer merged commit 2163151 into master Dec 20, 2023
35 checks passed
@d-maurer d-maurer deleted the start_stop_logic branch December 20, 2023 15:31
@icemac
Copy link
Member

icemac commented Dec 22, 2023

I just released this fix: https://pypi.org/project/zope.testrunner/6.2.1/

Thank you for tackling it.

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.

zope.testrunner fails one test with Python 3.12, succeeding with 3.11
3 participants