Skip to content

Commit

Permalink
Fix unit test raising warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ordinary-jamie committed Feb 18, 2024
1 parent d0a7d40 commit a120c87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Lib/test/test_asyncio/test_base_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ def shutdown(self, wait=True, *, cancel_futures=False):
self.loop.set_default_executor(executor)

with warnings.catch_warnings(record=True) as w:
warnings.simplefilter("default")
self.loop.run_until_complete(
self.loop.shutdown_default_executor(timeout=0.01))

Expand Down

0 comments on commit a120c87

Please sign in to comment.