aboutsummaryrefslogtreecommitdiffstats
path: root/host/tests/devtest/rx_samples_to_file_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/rx_samples_to_file_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/rx_samples_to_file_test.py')
-rwxr-xr-xhost/tests/devtest/rx_samples_to_file_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/tests/devtest/rx_samples_to_file_test.py b/host/tests/devtest/rx_samples_to_file_test.py
index b12eae9ad..4d95ff6ef 100755
--- a/host/tests/devtest/rx_samples_to_file_test.py
+++ b/host/tests/devtest/rx_samples_to_file_test.py
@@ -42,7 +42,7 @@ class rx_samples_to_file_test(uhd_example_test_case):
'--rate', str(test_args.get('rate', 1e6)),
'--wirefmt', test_args.get('wirefmt', 'sc16'),
]
- if test_args.has_key('subdev'):
+ if 'subdev' in test_args:
args.append('--subdev')
args.append(test_args['subdev'])
_, run_results = self.run_example('rx_samples_to_file', args)