Adress review comments: Add missing deprecation + additional test case

This commit is contained in:
Joe Farebrother
2024-09-23 10:55:29 +01:00
parent 7aa2816570
commit 48f9e0efe5
2 changed files with 10 additions and 2 deletions

View File

@@ -106,6 +106,11 @@ def test_in_list_with_constants():
else:
ensure_tainted(ts) # $ tainted
if ts in ["safe", not_constant(), None]:
ensure_tainted(ts) # $ tainted
def not_constant():
return "x"
SAFE = ["safe", "also_safe"]