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/tx_bursts_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/tx_bursts_test.py')
-rwxr-xr-x | host/tests/devtest/tx_bursts_test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/tests/devtest/tx_bursts_test.py b/host/tests/devtest/tx_bursts_test.py index 48bc4d2cb..513c2a303 100755 --- a/host/tests/devtest/tx_bursts_test.py +++ b/host/tests/devtest/tx_bursts_test.py @@ -38,7 +38,7 @@ class uhd_tx_bursts_test(uhd_example_test_case): '--channels', str(test_args['channels']), '--rate', str(test_args.get('rate', 1e6)), ] - if test_args.has_key('subdev'): + if 'subdev' in test_args: args.append('--subdev') args.append(test_args['subdev']) (app, run_results) = self.run_example('tx_bursts', args) |