Ctrl K
ComunidadGuías…

tests/test_audit_pty_spawn.py

Rama main · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
from scripts.audit_pty_spawn import audit_source

def test_pty_spawn_ignores_terminal_helpers():
    assert audit_source("pty.openpty()\n") == []

def test_pty_spawn_reports_interactive_child():
    assert audit_source("pty.spawn(['/bin/sh'])\n") == ["pty.spawn launches an interactive child process on line 1"]