Skip to content

Commit de2d811

Browse files
add teardownModule
1 parent 421c7b6 commit de2d811

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Lib/test/test_contextlib_async.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ def _async_test(func):
1616
def wrapper(*args, **kwargs):
1717
coro = func(*args, **kwargs)
1818
asyncio.run(coro)
19-
asyncio.set_event_loop_policy(None)
2019
return wrapper
2120

21+
def tearDownModule():
22+
asyncio.set_event_loop_policy(None)
23+
2224

2325
class TestAbstractAsyncContextManager(unittest.TestCase):
2426

0 commit comments

Comments
 (0)