diff options
-rw-r--r-- | tests/testutils/runcli.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/testutils/runcli.py b/tests/testutils/runcli.py index 7cd98ee2e..f165232dc 100644 --- a/tests/testutils/runcli.py +++ b/tests/testutils/runcli.py @@ -149,7 +149,10 @@ class Cli(): # Fetch the elements that would be in the pipeline with the given # arguments. # - def get_pipeline(self, project, elements, except_=[], scope='plan'): + def get_pipeline(self, project, elements, except_=None, scope='plan'): + if except_ is None: + except_ = [] + args = ['show', '--deps', scope, '--format', '%{name}'] args += list(itertools.chain.from_iterable(zip(itertools.repeat('--except'), except_))) |