Skip to content

Commit 5437f66

Browse files
committed
gh-128694: Fix (env changed) error in test_inspect
1 parent 087bb48 commit 5437f66

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Lib/test/test_inspect/test_inspect.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from annotationlib import Format, ForwardRef
2+
import asyncio
23
import builtins
34
import collections
45
import copy
@@ -49,6 +50,10 @@
4950
from test.test_inspect import inspect_deferred_annotations
5051

5152

53+
def tearDownModule():
54+
asyncio._set_event_loop_policy(None)
55+
56+
5257
# Functions tested in this suite:
5358
# ismodule, isclass, ismethod, isfunction, istraceback, isframe, iscode,
5459
# isbuiltin, isroutine, isgenerator, ispackage, isgeneratorfunction, getmembers,

0 commit comments

Comments
 (0)