From a120c87f12588c2b09a47f21e6c3504300e79cb4 Mon Sep 17 00:00:00 2001 From: ordinary-jamie <101677823+ordinary-jamie@users.noreply.github.com> Date: Mon, 19 Feb 2024 08:06:14 +1100 Subject: [PATCH] Fix unit test raising warnings --- Lib/test/test_asyncio/test_base_events.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_asyncio/test_base_events.py b/Lib/test/test_asyncio/test_base_events.py index a67620f37d37d5..e05a1755b3343e 100644 --- a/Lib/test/test_asyncio/test_base_events.py +++ b/Lib/test/test_asyncio/test_base_events.py @@ -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))