-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Update to support Python 3.14 #57004
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
Conversation
This seems to be the only place we're running an async client in the main thread, so we can just create an event loop here
These are open file handles and with Python3.14 we're getting a warning if they are closed in the destructor.
Python 3.14 seems to have movved to forkserver as the default, so these tests are broken there, as they are with 'spawn'
jsonschema started warning when it's auto-resolving references, so we instead pre-download the expected references and create a registry.
| with self.assertRaises(urllib.error.HTTPError): | ||
| with self.assertRaises(urllib.error.HTTPError) as cm: | ||
| self.request("/sub_file_hash_unrecognized.sub.txt") | ||
| cm.exception.close() |
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.
Is the indentation here wrong?
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.
No! Weirdly it doesn't work if you try to close the exception (file) inside the context manager.
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.
That is weird, but thanks for confirming :)
No description provided.