2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-31 06:16:03 +00:00

Remove superfluous self-cast in Invalid*Test

This commit is contained in:
Christian Boltz
2020-05-02 22:13:34 +02:00
parent 6557e06019
commit 7b009a909e
8 changed files with 8 additions and 8 deletions

View File

@@ -220,7 +220,7 @@ class InvalidCapabilityTest(AATest):
def _check_invalid_rawrule(self, rawrule):
obj = None
with self.assertRaises(AppArmorException):
obj = CapabilityRule(CapabilityRule.parse(rawrule))
obj = CapabilityRule.parse(rawrule)
self.assertFalse(CapabilityRule.match(rawrule))
self.assertIsNone(obj, 'CapbilityRule handed back an object unexpectedly')