File size: 576 Bytes
10b39cc
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
"""Even optimized interpreters must not weaken the CUDA synthetic admission tool."""
from pathlib import Path
import subprocess
import sys
script = Path(__file__).with_name("test_fa_production_control.py")
result = subprocess.run([sys.executable, "-O", str(script), "--help"], text=True, capture_output=True, timeout=30)
if result.returncode == 0 or "refuses optimized Python" not in result.stderr:
    raise RuntimeError("Optimized admission control failed to reject before any work")
print("Optimized control rejects before arguments, fixture generation, or runner launch")