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:
@@ -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')
|
||||
|
Reference in New Issue
Block a user