From 71c017f0532d1cfa7fcffa7302599abc326067fa Mon Sep 17 00:00:00 2001 From: Rasmus Wriedt Larsen Date: Tue, 21 Nov 2023 10:07:42 +0100 Subject: [PATCH] Python: Apply suggestions from code review Co-authored-by: yoff --- python/ql/test/library-tests/frameworks/stdlib/test_re.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/ql/test/library-tests/frameworks/stdlib/test_re.py b/python/ql/test/library-tests/frameworks/stdlib/test_re.py index 775cbcd7490..ea2c7c02c70 100644 --- a/python/ql/test/library-tests/frameworks/stdlib/test_re.py +++ b/python/ql/test/library-tests/frameworks/stdlib/test_re.py @@ -8,7 +8,7 @@ compiled_pat = re.compile(pat) # see https://docs.python.org/3/library/re.html#functions ensure_not_tainted( # returns Match object, which is tested properly below. (note: with the flow summary - # modeling, objects containing tainted values are not itself tainted). + # modeling, objects containing tainted values are not themselves tainted). re.search(pat, ts), re.match(pat, ts), re.fullmatch(pat, ts), @@ -36,7 +36,6 @@ ensure_tainted( tainted_match.groupdict()["key"], # $ tainted re.match(pat, ts).string, # $ tainted - re.match(ts, "safe").re, # $ MISSING: tainted re.match(ts, "safe").re.pattern, # $ tainted compiled_pat.match(ts).string, # $ tainted