File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -181,6 +181,8 @@ async def stdin_writer():
181181 await terminate_windows_process (process )
182182 else :
183183 process .terminate ()
184+ await read_stream .aclose ()
185+ await write_stream .aclose ()
184186
185187
186188def _get_executable_command (command : str ) -> str :
Original file line number Diff line number Diff line change 99tee : str = shutil .which ("tee" ) # type: ignore
1010
1111
12+ @pytest .mark .anyio
13+ @pytest .mark .skipif (tee is None , reason = "could not find tee command" )
14+ async def test_stdio_context_manager_exiting ():
15+ async with stdio_client (StdioServerParameters (command = tee )) as (_ , _ ):
16+ pass
17+
18+
1219@pytest .mark .anyio
1320@pytest .mark .skipif (tee is None , reason = "could not find tee command" )
1421async def test_stdio_client ():
You can’t perform that action at this time.
0 commit comments