From 41f142050fb39ad533f82256b574b5c08c160bc1 Mon Sep 17 00:00:00 2001 From: Brent Stapleton Date: Tue, 8 Oct 2019 11:16:24 -0700 Subject: tests: Change Python YAML module Use Python's `ruamel.yaml` module instead of `yaml` --- host/tests/devtest/uhd_test_base.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'host/tests') 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 -- cgit v1.2.3