提交 e6c3dad8 编写于 作者: L Lukáš Doktor

optional_plugins: Use simple "copy" in "loader_yaml" for args

The use of "deepcopy" should not be necessary as we only use it here to
override certain keys with our values, not to modify their value.

Even if (theoretically) modified those mutable values later in the
code, it'd have been done even without "deepcopy" for cases where we
didn't forced the "args".
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
上级 55f420f7
......@@ -85,7 +85,7 @@ class YamlTestsuiteLoader(loader.TestLoader):
if not _args:
args = self.args
else:
args = copy.deepcopy(self.args)
args = copy.copy(self.args)
for key, value in iteritems(_args):
setattr(args, key, value)
extra_params = params.get("test_reference_resolver_extra", default={})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册