-
Notifications
You must be signed in to change notification settings - Fork 14
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
Support Python 3.13 #97
Conversation
zope.interface release 6.4 is now published. |
I do not plan to work on fixing this issue, as I have no clue what is going wrong here. |
Michael Howitz wrote at 2024-5-16 00:07 -0700:
I do not plan to work on fixing this issue, as I have no clue what is going wrong here.
The test
`ZConfig.components.logger.tests.test_logger.TestReopeningLogfiles.test_filehandler_reopen_thread_safety`)
tries to check (among others) that the `close` operation
of `ZConfig.components.logger.loghandler.FileHandler` (derived
from `logging.FileHandler`) uses a lock (to obtain thread safety).
For this, it overrides the `acquire` and `release` methods of
its handler instance.
But, with Python 3.13, the inherited `close` no longer uses
its `acquire/release` methods internally; instead it uses
`with self.lock`. Correspondingly, the test's overrides are ineffective
and the test fails (to recognize that thread safety is still guaranteed).
Likely fix:
do not override `acquire/release` but the `lock` attribute
with a lock mockup recording acquire/release independently
of whether the operations are called under their name or under
`__enter__, __exit__`.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fix LGTM.
@d-maurer, I noticed that you removed a changelog entry. Shouldn't we have an entry , - Added support for Python 3.13
, as well as adding the corresponding Trove classifier to setup.py
?
Thanks! This fix works for me. |
Tres Seaver wrote at 2024-5-18 06:36 -0700:
@tseaver requested changes on this pull request.
...
@d-maurer, I noticed that you removed a changelog entry.
I removed a changelog entry which came from my previous work
from PR #98 -- and has been inappropriate here.
Shouldn't we have an entry
, `- Added support for Python 3.13`
We should!
The current PR is still a draft and some fine points are still
missing (changelog entry, trove classifiers, ...).
Let's wait until @icemac declares the PR ready for review.
|
Thank you for the work to fix this PR. |
Dependencies:
Fixes #96