Skip to content

Conversation

@bdarnell
Copy link
Member

@bdarnell bdarnell commented Aug 8, 2025

When warnings are in context-aware mode (the default in free-threaded Python 3.14), the server captures the context from setUp and does not see the warning filter installed in the test method. Move the warning filter into the handler so it works consistently regardless of the context_aware_warnings flag.

Updates #3501

When warnings are in context-aware mode (the default in free-threaded
Python 3.14), the server captures the context from setUp and does not
see the warning filter installed in the test method. Move the warning
filter into the handler so it works consistently regardless of the
context_aware_warnings flag.

Updates tornadoweb#3501
@bdarnell bdarnell merged commit 39af375 into tornadoweb:master Aug 8, 2025
16 checks passed
@bdarnell bdarnell deleted the context-aware-warnings branch August 8, 2025 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant