We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a936af9 commit e8ed3a8Copy full SHA for e8ed3a8
Lib/test/test_pdb.py
@@ -13,6 +13,7 @@
13
import zipapp
14
import zipfile
15
16
+from asyncio.events import _set_event_loop_policy
17
from contextlib import ExitStack, redirect_stdout
18
from io import StringIO
19
from test import support
@@ -41,6 +42,10 @@ def __exit__(self, *exc):
41
42
if self.orig_trace:
43
sys.settrace(self.orig_trace)
44
45
+ # To prevent a warning "test altered the execution environment" if
46
+ # asyncio features are used.
47
+ _set_event_loop_policy(None)
48
+
49
50
def test_pdb_displayhook():
51
"""This tests the custom displayhook for pdb.
0 commit comments