Skip to content

Commit a838977

Browse files
committed
testing: Remove deprecation warning filter for set_event_loop
The deprecation warning for this function was reverted for 3.14b1. See python/cpython#130322
1 parent d8e0d36 commit a838977

2 files changed

Lines changed: 1 addition & 14 deletions

File tree

‎.github/workflows/test.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
tox_env: py312-full
5858
- python: '3.13'
5959
tox_env: py313-full
60-
- python: '3.14.0-alpha.1 - 3.14'
60+
- python: '3.14.0-beta.1 - 3.14'
6161
tox_env: py314-full
6262
- python: 'pypy-3.10'
6363
# Pypy is a lot slower due to jit warmup costs, so don't run the

‎tornado/testing.py‎

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -155,19 +155,6 @@ def setUp(self) -> None:
155155
category=DeprecationWarning,
156156
module=r"tornado\..*",
157157
)
158-
if (3, 14) <= py_ver:
159-
# TODO: This is a temporary hack pending resolution of
160-
# https://github.com/python/cpython/issues/130322
161-
# If set_event_loop is undeprecated, we can remove it; if not
162-
# we need substantial changes to this class to use asyncio.Runner
163-
# like IsolatedAsyncioTestCase does.
164-
setup_with_context_manager(self, warnings.catch_warnings())
165-
warnings.filterwarnings(
166-
"ignore",
167-
message="'asyncio.set_event_loop' is deprecated",
168-
category=DeprecationWarning,
169-
module="tornado.testing",
170-
)
171158
super().setUp()
172159
if type(self).get_new_ioloop is not AsyncTestCase.get_new_ioloop:
173160
warnings.warn("get_new_ioloop is deprecated", DeprecationWarning)

0 commit comments

Comments
 (0)