-
Notifications
You must be signed in to change notification settings - Fork 132
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
GitHub tests are failing on Python 3.12 alpha 7 #569
Comments
Seems related to: python/cpython#12271. Without getting into deep analysys: the test seems to fail because |
|
My thanks to both of you for running this down and providing the breadcrumbs for me to understand what was happening. I've just merged @cclauss's fix and will make sure to cite him in the changelog under py3.12 compatibility. |
…ation' warning The `unittest._TextTestResult` alias was removed in Python 3.12 in favor of the `unittest.TextTestResult` class. This class is overloaded in `result.py` to implement some additional error classes and hooks. Fixed by trying another import location, and using a local alias for the base class. https://docs.python.org/3/whatsnew/3.12.html#id3 At invocation time, the test runner would also periodically emit warnings warnings.warn("TestResult has no addDuration method... This appears to be a new Python 3.12 feature to track duration of tests for the overall report, which isn't included in our subclass. Added a stub to satisfy this interface and silence the warnings. https://docs.python.org/3/whatsnew/3.12.html#unittest nose-devs/nose2#569 Bumped package version to '1.3.7.3'
See https://github.com/nose-devs/nose2/actions
The text was updated successfully, but these errors were encountered: