mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
Replace mutable default arguments in tests
This commit is contained in:
parent
844a4dc393
commit
14e01b5d73
1 changed files with 2 additions and 2 deletions
|
@ -755,7 +755,7 @@ POLICYGROUPS_DIR="{}/templates"
|
|||
#
|
||||
# Test genpolicy
|
||||
#
|
||||
def _gen_policy(self, name=None, template=None, extra_args=[]):
|
||||
def _gen_policy(self, name=None, template=None, extra_args=None):
|
||||
"""Generate a policy"""
|
||||
# Build up our args
|
||||
args = self.full_args
|
||||
|
@ -922,7 +922,7 @@ POLICYGROUPS_DIR="{}/templates"
|
|||
continue
|
||||
raise Exception("abstraction '{}' should be invalid".format(s))
|
||||
|
||||
def _create_tmp_base_dir(self, prefix='', abstractions=[], tunables=[]):
|
||||
def _create_tmp_base_dir(self, prefix='', abstractions=(), tunables=()):
|
||||
"""Create a temporary base dir layout"""
|
||||
base_name = 'apparmor.d'
|
||||
if prefix:
|
||||
|
|
Loading…
Add table
Reference in a new issue