]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
testing: Remove deprecation warning filter for set_event_loop
authorBen Darnell <ben@bendarnell.com>
Thu, 8 May 2025 19:36:19 +0000 (15:36 -0400)
committerBen Darnell <ben@bendarnell.com>
Thu, 8 May 2025 19:36:19 +0000 (15:36 -0400)
The deprecation warning for this function was reverted for 3.14b1.

See https://github.com/python/cpython/issues/130322

.github/workflows/test.yml
tornado/testing.py

index 7329ecdb93868a5d4f78073f4ebbffa6657fbd57..6741867c3e4b11e852d1680e98acc917d31505d1 100644 (file)
@@ -57,7 +57,7 @@ jobs:
             tox_env: py312-full
           - python: '3.13'
             tox_env: py313-full
-          - python: '3.14.0-alpha.1 - 3.14'
+          - python: '3.14.0-beta.1 - 3.14'
             tox_env: py314-full
           - python: 'pypy-3.10'
             # Pypy is a lot slower due to jit warmup costs, so don't run the
index 9f54a1e2ed509ccc24ab2732a87d5c5c93c9fb3d..a397e3fa1cadee67d43a411c46cc40eb1deb2ce8 100644 (file)
@@ -155,19 +155,6 @@ class AsyncTestCase(unittest.TestCase):
                 category=DeprecationWarning,
                 module=r"tornado\..*",
             )
-        if (3, 14) <= py_ver:
-            # TODO: This is a temporary hack pending resolution of
-            # https://github.com/python/cpython/issues/130322
-            # If set_event_loop is undeprecated, we can remove it; if not
-            # we need substantial changes to this class to use asyncio.Runner
-            # like IsolatedAsyncioTestCase does.
-            setup_with_context_manager(self, warnings.catch_warnings())
-            warnings.filterwarnings(
-                "ignore",
-                message="'asyncio.set_event_loop' is deprecated",
-                category=DeprecationWarning,
-                module="tornado.testing",
-            )
         super().setUp()
         if type(self).get_new_ioloop is not AsyncTestCase.get_new_ioloop:
             warnings.warn("get_new_ioloop is deprecated", DeprecationWarning)