summaryrefslogtreecommitdiff
path: root/gr-blocks/python/blocks/qa_throttle.py
diff options
context:
space:
mode:
authorJosh Morman <mormjb@gmail.com>2020-04-23 08:05:31 -0400
committerJosh Morman <mormjb@gmail.com>2020-06-04 10:05:47 -0400
commit8714e249cdfeb1da4405c35ecc8ab718e4e7dcc6 (patch)
treeba54f56c0f9951855ddade5f426ad34c9efb0ce0 /gr-blocks/python/blocks/qa_throttle.py
parent2aaa3593989a709911a83aa4890a8f6a22c484f3 (diff)
blocks: add pybind11 bindings
Diffstat (limited to 'gr-blocks/python/blocks/qa_throttle.py')
-rw-r--r--gr-blocks/python/blocks/qa_throttle.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-blocks/python/blocks/qa_throttle.py b/gr-blocks/python/blocks/qa_throttle.py
index 88495c9cc3..e6d3212cbe 100644
--- a/gr-blocks/python/blocks/qa_throttle.py
+++ b/gr-blocks/python/blocks/qa_throttle.py
@@ -23,7 +23,7 @@ class test_throttle(gr_unittest.TestCase):
self.tb = None
def test_throttling(self):
- src_data = (1, 2, 3)
+ src_data = [1, 2, 3]
src = blocks.vector_source_c(src_data)
thr = blocks.throttle(gr.sizeof_gr_complex, 10)
dst = blocks.vector_sink_c()
@@ -41,7 +41,7 @@ class test_throttle(gr_unittest.TestCase):
self.assertEqual(src_data, dst_data)
def test_rx_rate_tag(self):
- src_data = (1, 2, 3, 4, 5, 6)
+ src_data = [1, 2, 3, 4, 5, 6]
tag = gr.tag_t()
tag.key = pmt.string_to_symbol("rx_rate")
tag.value = pmt.to_pmt(20)