Skip to content

Commit 6eb1ba1

Browse files
committed
Fix crossplatform changes in type tests
1 parent 605b0df commit 6eb1ba1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/trio/_tests/type_tests/subprocesses.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@ async def test() -> None:
99
await trio.run_process("python", executable="ls")
1010
await trio.lowlevel.open_process("python", executable="ls")
1111

12+
# note: there's no error code on the type ignore as it varies
13+
# between platforms.
1214
await trio.run_process("python", capture_stdout=True)
13-
await trio.lowlevel.open_process("python", capture_stdout=True) # type: ignore[call-arg]
15+
await trio.lowlevel.open_process("python", capture_stdout=True) # type: ignore
1416

1517
if sys.platform != "win32" and sys.version_info >= (3, 9):
1618
await trio.run_process("python", extra_groups=[5])
1719
await trio.lowlevel.open_process("python", extra_groups=[5])
1820

1921
# 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]
22+
await trio.run_process("python", process_group=5) # type: ignore
23+
await trio.lowlevel.open_process("python", process_group=5) # type: ignore

0 commit comments

Comments
 (0)