test/builder: avoid using list in keyword argument

Although in that specific use case it was fine, since the list
was copied before usage, pylint in newer versions was unhappy.
This commit is contained in:
Christian Kellner 2020-10-29 16:27:49 +01:00 committed by Lars Karlitski
parent f5564c5f1f
commit 8d40baedf8

View file

@ -22,9 +22,9 @@ API_BASE = "api/composer-koji/v1/"
class MockComposer:
def __init__(self, url, *, architectures=["x86_64"]):
def __init__(self, url, *, architectures=None):
self.url = urllib.parse.urljoin(url, API_BASE)
self.architectures = architectures[:]
self.architectures = architectures or ["x86_64"]
self.composes = {}
self.errors = []
self.build_id = 1