Skip to content

Commit

Permalink
don't use setup_with_context_manager
Browse files Browse the repository at this point in the history
  • Loading branch information
finnagin authored Feb 19, 2025
1 parent c116ef0 commit cb4adb2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tornado/platform/asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
import warnings
from tornado.gen import convert_yielded
from tornado.ioloop import IOLoop, _Selectable
from tornado.testing import setup_with_context_manager

from typing import (
Any,
Expand Down Expand Up @@ -395,7 +394,6 @@ def to_asyncio_future(tornado_future: asyncio.Future) -> asyncio.Future:
py_ver = sys.version_info
if (3, 14, 0) <= py_ver:
# 3458 - This will work until 3.16 when the function is fully removed
setup_with_context_manager(self, warnings.catch_warnings())
warnings.filterwarnings(
"ignore",
message="'asyncio.DefaultEventLoopPolicy' is deprecated",
Expand Down

0 comments on commit cb4adb2

Please sign in to comment.