From 220ef300c75971cf4c2f2b04f9e8d8f05a7eb048 Mon Sep 17 00:00:00 2001 From: goodboy Date: Tue, 23 Jun 2026 19:03:56 -0400 Subject: [PATCH] Skip `test_parent_tty_isolated` off-Linux (`/proc`-only) --- tests/trionics/test_subproc.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/trionics/test_subproc.py b/tests/trionics/test_subproc.py index 136bca9f..a860ec6e 100644 --- a/tests/trionics/test_subproc.py +++ b/tests/trionics/test_subproc.py @@ -14,6 +14,7 @@ Hermetic `trio`-only coverage (no actor-runtime needed): ''' from functools import partial +import platform import subprocess import pytest @@ -69,6 +70,10 @@ def test_stdout_relayed_per_line(monkeypatch): assert any('line=3' in r for r in out_lines) +@pytest.mark.skipif( + platform.system() != 'Linux', + reason='reads `/proc/self/fd` — Linux-only', +) def test_parent_tty_isolated(monkeypatch): records = _capture_relay(monkeypatch)