diff options
author | Trung Tran <trung.tran@ettus.com> | 2019-01-20 01:35:37 -0800 |
---|---|---|
committer | Brent Stapleton <brent.stapleton@ettus.com> | 2019-01-23 11:03:39 -0800 |
commit | c6618dd8d3daf986f40d0877231d106a5789d984 (patch) | |
tree | de3c50bd239cfa5f017aa378112f34ee80456d25 /host/tests/devtest/test_pps_test.py | |
parent | ec2cad0346a7e459222d976a2cb4de34339aa3ae (diff) | |
download | uhd-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_pps_test.py')
-rwxr-xr-x | host/tests/devtest/test_pps_test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/tests/devtest/test_pps_test.py b/host/tests/devtest/test_pps_test.py index 39c47d1c7..bccb9bed9 100755 --- a/host/tests/devtest/test_pps_test.py +++ b/host/tests/devtest/test_pps_test.py @@ -27,7 +27,7 @@ class uhd_test_pps_test(uhd_example_test_case): args = [ self.create_addr_args_str(), ] - if test_args.has_key('source'): + if 'source' in test_args: args.append('--source') args.append(test_args['source']) (app, run_results) = self.run_example('test_pps_input', args) |