mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-22 01:57:43 +00:00
Drop useless code in test-regex_matches.py
No need to assign a variable to itsself, not even conditionally.
This commit is contained in:
parent
93c7035148
commit
ce0cfccfd7
@ -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))
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user