Skip to content

Conversation

@jgraham
Copy link
Contributor

@jgraham jgraham commented Jan 6, 2026

No description provided.

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.
@jgraham jgraham reopened this Jan 8, 2026
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()
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Member

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

@jgraham jgraham enabled auto-merge (rebase) January 8, 2026 09:51
@jgraham jgraham merged commit 61f2145 into master Jan 8, 2026
67 of 68 checks passed
@jgraham jgraham deleted the python314 branch January 8, 2026 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants