diff --git a/utils/test/test-regex_matches.py b/utils/test/test-regex_matches.py index 97120fad3..927f0ea6f 100644 --- a/utils/test/test-regex_matches.py +++ b/utils/test/test-regex_matches.py @@ -44,8 +44,6 @@ class AANamedRegexTest(AATest): for exp in expected: match = matches.group(exp) - if match: - match = match self.assertEqual(match, expected[exp], 'Group {} mismatch in rule {}'.format(exp, line))