llm-security/tests/fixtures/ast-scan/sentinel.py
2026-06-20 09:38:36 +02:00

6 lines
255 B
Python

import os
# Parse-only safety canary. If the AST helper ever EXECUTES this file instead
# of merely PARSING it (ast.parse), it creates a file named SENTINEL in the
# working directory. The test asserts SENTINEL never appears.
os.system("touch SENTINEL")