From c6618dd8d3daf986f40d0877231d106a5789d984 Mon Sep 17 00:00:00 2001 From: Trung Tran Date: Sun, 20 Jan 2019 01:35:37 -0800 Subject: tests: replace has_key by using 'in' python3+ dropped has_key function on dictionary. In order to make it compatible, we need to use 'in' keyword. Signed-off-by: Trung.Tran --- host/tests/devtest/test_messages_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/tests/devtest/test_messages_test.py') diff --git a/host/tests/devtest/test_messages_test.py b/host/tests/devtest/test_messages_test.py index 55d70db9c..eb39c29f7 100644 --- a/host/tests/devtest/test_messages_test.py +++ b/host/tests/devtest/test_messages_test.py @@ -29,7 +29,7 @@ class uhd_test_messages_test(uhd_example_test_case): args = [ self.create_addr_args_str(), ] - if test_args.has_key('ntests'): + if 'ntests' in test_args: args.append('--ntests') args.append(test_args['ntests']) (app, run_results) = self.run_example('test_messages', args) -- cgit v1.2.3