From db36f10e86d43ad968a148074d60f6929a335580 Mon Sep 17 00:00:00 2001 From: Auke Klazema <klazema@astron.nl> Date: Mon, 15 Aug 2022 17:02:45 +0200 Subject: [PATCH] L2SS-873: Collect mock args that also works with 3.7 --- .../tangostationcontrol/test/clients/test_snmp_client.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tangostationcontrol/tangostationcontrol/test/clients/test_snmp_client.py b/tangostationcontrol/tangostationcontrol/test/clients/test_snmp_client.py index 2b2866246..6f6df0976 100644 --- a/tangostationcontrol/tangostationcontrol/test/clients/test_snmp_client.py +++ b/tangostationcontrol/tangostationcontrol/test/clients/test_snmp_client.py @@ -173,8 +173,7 @@ class TestSNMP(base.TestCase): # get a value to compare the value we got against checkval = server.val_check(i, server.DIM_LIST[j]) - res_lst = [call.args[1] for call in hlapi.ObjectType.call_args_list if call.args] - + res_lst = [args[1] for args, _ in hlapi.ObjectType.call_args_list if args] if len(res_lst) == 1: res_lst = res_lst[0] -- GitLab