We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d07cd2d commit d5a0f47Copy full SHA for d5a0f47
tests/test_subprocess.py
@@ -6,6 +6,17 @@
6
import pytest
7
8
9
+if sys.platform == 'win32':
10
+ # The default asyncio event loop implementation on Windows does not
11
+ # support subprocesses. Subprocesses are available for Windows if a
12
+ # ProactorEventLoop is used.
13
+ @pytest.yield_fixture()
14
+ def event_loop():
15
+ loop = asyncio.ProactorEventLoop()
16
+ yield loop
17
+ loop.close()
18
+
19
20
@pytest.mark.asyncio(forbid_global_loop=False)
21
async def test_subprocess(event_loop):
22
"""Starting a subprocess should be possible."""
0 commit comments