Skip to content

Commit d233dd1

Browse files
committed
Prevent warning "test altered the execution environment"
1 parent 63e712d commit d233dd1

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
@@ -23,6 +23,11 @@
2323
import unittest
2424

2525

26+
# To prevent a warning "test altered the execution environment"
27+
def tearDownModule():
28+
asyncio.set_event_loop_policy(None)
29+
30+
2631
class MyExc(Exception):
2732
pass
2833

0 commit comments

Comments
 (0)