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():
181
181
await terminate_windows_process (process )
182
182
else :
183
183
process .terminate ()
184
+ await read_stream .aclose ()
185
+ await write_stream .aclose ()
184
186
185
187
186
188
def _get_executable_command (command : str ) -> str :
Original file line number Diff line number Diff line change 9
9
tee : str = shutil .which ("tee" ) # type: ignore
10
10
11
11
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
+
12
19
@pytest .mark .anyio
13
20
@pytest .mark .skipif (tee is None , reason = "could not find tee command" )
14
21
async def test_stdio_client ():
You can’t perform that action at this time.
0 commit comments