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 8f3d09b commit 014a5b7Copy full SHA for 014a5b7
Lib/test/test_asyncio/test_runners.py
@@ -101,11 +101,14 @@ async def main(expected):
101
loop = asyncio.get_event_loop()
102
self.assertIs(loop.get_debug(), expected)
103
104
- asyncio.run(main(False))
+ asyncio.run(main(False), debug=False)
105
asyncio.run(main(True), debug=True)
106
with mock.patch('asyncio.coroutines._is_debug_mode', lambda: True):
107
asyncio.run(main(True))
108
asyncio.run(main(False), debug=False)
109
+ with mock.patch('asyncio.coroutines._is_debug_mode', lambda: False):
110
+ asyncio.run(main(True), debug=True)
111
+ asyncio.run(main(False))
112
113
def test_asyncio_run_from_running_loop(self):
114
async def main():
0 commit comments