From 582f142b1578b6036707242bfe874bcefc002ac2 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Thu, 6 Feb 2020 01:21:30 +0100 Subject: tests: json_echo: Fix for Python3 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 --- tests/json_echo/run-test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/json_echo') diff --git a/tests/json_echo/run-test.py b/tests/json_echo/run-test.py index a636d5f2..fa7d69ab 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 -- cgit v1.2.3