Skip to content

Commit 605b0df

Browse files
committed
Add type tests
1 parent d82d545 commit 605b0df

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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]

0 commit comments

Comments
 (0)