summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gr-uhd/python/uhd/qa_uhd.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/gr-uhd/python/uhd/qa_uhd.py b/gr-uhd/python/uhd/qa_uhd.py
index d87ab77c4..65b50d794 100644
--- a/gr-uhd/python/uhd/qa_uhd.py
+++ b/gr-uhd/python/uhd/qa_uhd.py
@@ -6,12 +6,12 @@
#
# SPDX-License-Identifier: GPL-3.0-or-later
#
-#
-
+"""
+gr-uhd sanity checking
+"""
from gnuradio import gr, gr_unittest, uhd
-
class test_uhd(gr_unittest.TestCase):
def setUp(self):
@@ -37,11 +37,9 @@ class test_uhd(gr_unittest.TestCase):
"""
Try to manipulate the stream args channels for proper swig'ing checks.
"""
- # FIXME: stream_args_t.channels.append does not work due to copy operation of STL vectors
- # Needs to either change API, remove QA test, or somehow remap append()
+ # FYI: stream_args_t.channels.append does not work due to copy operation of STL vectors
sa = uhd.stream_args_t()
- sa.channels.append(1)
- sa.channels.append(0)
+ sa.channels = [1, 0]
print(sa.channels)
self.assertEqual(len(sa.channels), 2)
self.assertEqual(sa.channels[0], 1)