Ctrl K
ComunidadGuías…

tests/test_audit_threading_profile_all.py

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

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


def test_thread_profile_audit_allows_profile_lookup():
    assert audit_source("threading.getprofile()\n") == []


def test_thread_profile_audit_reports_global_profile_installation():
    assert audit_source("threading.setprofile_all_threads(profile)\n") == ["threading.setprofile_all_threads() mutates global profiling behavior on line 1"]