summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2020-02-06 01:21:30 +0100
committerPhil Sutter <phil@nwl.cc>2020-02-07 13:28:02 +0100
commit582f142b1578b6036707242bfe874bcefc002ac2 (patch)
tree1c8787aeb4a85b7853f4a07e0144223e79830f54 /tests
parent694cf23999eea468dc3124f1269f333d47a75a5e (diff)
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 <phil@nwl.cc>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/json_echo/run-test.py2
1 files changed, 1 insertions, 1 deletions
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