Files
codeql/python/ql/test/query-tests/Statements/asserts/side_effect.py
2026-06-15 16:15:17 +01: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]