zopefoundation / zope.testrunner

This package provides a flexible test runner with layer support.
https://zopetestrunner.readthedocs.io/
Other
2 stars 23 forks source link

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

Closed d-maurer closed 10 months ago

d-maurer commented 10 months ago

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).

icemac commented 10 months ago

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

Thank you for tackling it.