Message ID | 20200206005851.28962-2-phil@nwl.cc |
---|---|
State | Accepted |
Delegated to: | Pablo Neira |
Headers | show |
Series | Extend testsuites to run against installed binaries | expand |
diff --git a/tests/json_echo/run-test.py b/tests/json_echo/run-test.py index a636d5f247702..fa7d69ab75645 100755 --- a/tests/json_echo/run-test.py +++ b/tests/json_echo/run-test.py @@ -119,7 +119,7 @@ def get_handle(output, search): else: data = item - k = search.keys()[0] + k = list(search.keys())[0] if not k in data: continue
The keys() method returns an object which does not support indexing, so convert it to a list prior to doing so. Fixes: a35e3a0cdc63a ("tests: json_echo: convert to py3") Signed-off-by: Phil Sutter <phil@nwl.cc> --- tests/json_echo/run-test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)