Skip `test_parent_tty_isolated` off-Linux (`/proc`-only)

trio_033_upgrade
Gud Boi 2026-06-23 19:03:56 -04:00
parent 1229fb5019
commit 220ef300c7
1 changed files with 5 additions and 0 deletions

View File

@ -14,6 +14,7 @@ Hermetic `trio`-only coverage (no actor-runtime needed):
''' '''
from functools import partial from functools import partial
import platform
import subprocess import subprocess
import pytest import pytest
@ -69,6 +70,10 @@ def test_stdout_relayed_per_line(monkeypatch):
assert any('line=3' in r for r in out_lines) 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): def test_parent_tty_isolated(monkeypatch):
records = _capture_relay(monkeypatch) records = _capture_relay(monkeypatch)