]> git.ipfire.org Git - thirdparty/tornado.git/commit
web_test: Move an ignore_deprecation block 3530/head
authorBen Darnell <ben@bendarnell.com>
Fri, 8 Aug 2025 17:50:45 +0000 (13:50 -0400)
committerBen Darnell <ben@bendarnell.com>
Fri, 8 Aug 2025 17:50:45 +0000 (13:50 -0400)
commit9543da65159cae6c12a33fa82849def31fe0516f
treed46b21328c12ff4f1df544356c34d6501f888397
parentb7447c1bc27297996033a278035498aa63238e35
web_test: Move an ignore_deprecation block

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
tornado/test/web_test.py