Skip to content

Commit ca71935

Browse files
authored
restore _set_event_loop_policy(None)
1 parent 18b6ea9 commit ca71935

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Lib/test/test_asyncio/test_taskgroups.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313

1414
from test.test_asyncio.utils import await_without_task
1515

16+
# To prevent a warning "test altered the execution environment"
17+
def tearDownModule():
18+
asyncio._set_event_loop_policy(None)
19+
20+
1621
class MyExc(Exception):
1722
pass
1823

0 commit comments

Comments
 (0)