summaryrefslogtreecommitdiff
path: root/gr-blocks/python/blocks/qa_mute.py
diff options
context:
space:
mode:
authorMarcus Müller <marcus@hostalia.de>2020-06-19 11:07:54 +0200
committerMarcus Müller <marcus@hostalia.de>2020-06-19 11:07:54 +0200
commite76d04ca2f4f15e3b1a1ab2a81dd52c4e6d2472c (patch)
tree1d86f68fceed9cd7204d9a79e816dc06c15feaf4 /gr-blocks/python/blocks/qa_mute.py
parent98348e37209aa7daeb96fe5ead815e5b083dc6da (diff)
parent39311758cb1e6a7424d3213b3eb2c65c8c4dcfe1 (diff)
Move from SWIG to Pybind11
Goodbye, and thanks for all the fish, SWIG. Please refer to docs/PYBIND11.md for details on how to deal with Pybind.
Diffstat (limited to 'gr-blocks/python/blocks/qa_mute.py')
-rw-r--r--gr-blocks/python/blocks/qa_mute.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/gr-blocks/python/blocks/qa_mute.py b/gr-blocks/python/blocks/qa_mute.py
index 3264a38a80..fd72abfe24 100644
--- a/gr-blocks/python/blocks/qa_mute.py
+++ b/gr-blocks/python/blocks/qa_mute.py
@@ -50,26 +50,26 @@ class test_mute(gr_unittest.TestCase):
self.assertEqual(exp_data, result_data)
def test_unmute_ii(self):
- src_data = (1, 2, 3, 4, 5)
- expected_result = (1, 2, 3, 4, 5)
+ src_data = [1, 2, 3, 4, 5]
+ expected_result = [1, 2, 3, 4, 5]
op = blocks.mute_ii(False)
self.help_ii((src_data,), expected_result, op)
def test_mute_ii(self):
- src_data = (1, 2, 3, 4, 5)
- expected_result = (0, 0, 0, 0, 0)
+ src_data = [1, 2, 3, 4, 5]
+ expected_result = [0, 0, 0, 0, 0]
op = blocks.mute_ii(True)
self.help_ii((src_data,), expected_result, op)
def test_unmute_cc(self):
- src_data = (1+5j, 2+5j, 3+5j, 4+5j, 5+5j)
- expected_result = (1+5j, 2+5j, 3+5j, 4+5j, 5+5j)
+ src_data = [1+5j, 2+5j, 3+5j, 4+5j, 5+5j]
+ expected_result = [1+5j, 2+5j, 3+5j, 4+5j, 5+5j]
op = blocks.mute_cc(False)
self.help_cc((src_data,), expected_result, op)
def test_unmute_cc(self):
- src_data = (1+5j, 2+5j, 3+5j, 4+5j, 5+5j)
- expected_result =(0+0j, 0+0j, 0+0j, 0+0j, 0+0j)
+ src_data = [1+5j, 2+5j, 3+5j, 4+5j, 5+5j]
+ expected_result =[0+0j, 0+0j, 0+0j, 0+0j, 0+0j]
op = blocks.mute_cc(True)
self.help_cc((src_data,), expected_result, op)