Files
codeql/python/ql/test/query-tests/Statements/asserts/side_effect.py
Owen Mansel-Chan 8e07690049 Python
2026-06-10 22:57:42 +02:00

6 lines
357 B
Python

# For now, this test lives in its own file, since including them in the top of assert.py
# messes up the results of the refers-to/points-to analysis
# see /home/rasmus/code/ql/python/ql/test/library-tests/PointsTo/regressions/subprocess-assert/mwe_failure.py
import subprocess
assert subprocess.call(['run-backup']) == 0 # $ Alert[py/side-effect-in-assert]