File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
src/trio/_tests/type_tests Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 1+ import sys
2+
3+ import trio
4+
5+
6+ async def test () -> None :
7+ # this could test more by using platform checks, but currently this
8+ # is just regression tests + sanity checks.
9+ await trio .run_process ("python" , executable = "ls" )
10+ await trio .lowlevel .open_process ("python" , executable = "ls" )
11+
12+ await trio .run_process ("python" , capture_stdout = True )
13+ await trio .lowlevel .open_process ("python" , capture_stdout = True ) # type: ignore[call-arg]
14+
15+ if sys .platform != "win32" and sys .version_info >= (3 , 9 ):
16+ await trio .run_process ("python" , extra_groups = [5 ])
17+ await trio .lowlevel .open_process ("python" , extra_groups = [5 ])
18+
19+ # 3.11+:
20+ await trio .run_process ("python" , process_group = 5 ) # type: ignore[call-arg]
21+ await trio .lowlevel .open_process ("python" , process_group = 5 ) # type: ignore[call-arg]
You can’t perform that action at this time.
0 commit comments