aboutsummaryrefslogtreecommitdiffstats
path: root/host/tests/devtest/test_messages_test.py
diff options
context:
space:
mode:
authorTrung Tran <trung.tran@ettus.com>2019-01-20 01:35:37 -0800
committerBrent Stapleton <brent.stapleton@ettus.com>2019-01-23 11:03:39 -0800
commitc6618dd8d3daf986f40d0877231d106a5789d984 (patch)
treede3c50bd239cfa5f017aa378112f34ee80456d25 /host/tests/devtest/test_messages_test.py
parentec2cad0346a7e459222d976a2cb4de34339aa3ae (diff)
downloaduhd-c6618dd8d3daf986f40d0877231d106a5789d984.tar.gz
uhd-c6618dd8d3daf986f40d0877231d106a5789d984.tar.bz2
uhd-c6618dd8d3daf986f40d0877231d106a5789d984.zip
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<trung.tran@ettus.com>
Diffstat (limited to 'host/tests/devtest/test_messages_test.py')
-rw-r--r--host/tests/devtest/test_messages_test.py2
1 files changed, 1 insertions, 1 deletions
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)