aboutsummaryrefslogtreecommitdiffstats
path: root/host/tests
diff options
context:
space:
mode:
authorBrent Stapleton <brent.stapleton@ettus.com>2019-10-08 11:16:24 -0700
committerMartin Braun <martin.braun@ettus.com>2019-11-26 12:21:32 -0800
commit41f142050fb39ad533f82256b574b5c08c160bc1 (patch)
treef6b9865ba7cf0de135455f5639e04262d8f4b6f8 /host/tests
parentcfd5cd326df722a758abb61e91667d6568fb2a14 (diff)
downloaduhd-41f142050fb39ad533f82256b574b5c08c160bc1.tar.gz
uhd-41f142050fb39ad533f82256b574b5c08c160bc1.tar.bz2
uhd-41f142050fb39ad533f82256b574b5c08c160bc1.zip
tests: Change Python YAML module
Use Python's `ruamel.yaml` module instead of `yaml`
Diffstat (limited to 'host/tests')
-rwxr-xr-xhost/tests/devtest/uhd_test_base.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/host/tests/devtest/uhd_test_base.py b/host/tests/devtest/uhd_test_base.py
index c2f987af4..00b0fd73b 100755
--- a/host/tests/devtest/uhd_test_base.py
+++ b/host/tests/devtest/uhd_test_base.py
@@ -17,7 +17,12 @@ import re
import time
import logging
from subprocess import Popen, PIPE
-import yaml
+# For what we're doing here, ruamel.yaml and yaml are copatible, and we'll use
+# whatever we can find
+try:
+ from ruamel import yaml
+except:
+ import yaml
from six import iteritems
from usrp_probe import get_usrp_list