Skip to content

Commit

Permalink
filter DefaultEventLoopPolicy
Browse files Browse the repository at this point in the history
  • Loading branch information
finnagin authored Feb 18, 2025
1 parent 0ced556 commit d471a31
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tornado/test/asyncio_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ def setUp(self):
message="'asyncio.get_event_loop_policy' is deprecated",
category=DeprecationWarning,
)
warnings.filterwarnings(
"ignore",
message="'asyncio.DefaultEventLoopPolicy' is deprecated",
category=DeprecationWarning,
)
self.orig_policy = asyncio.get_event_loop_policy()
asyncio.set_event_loop_policy(asyncio.DefaultEventLoopPolicy())

Expand Down

0 comments on commit d471a31

Please sign in to comment.