diff options
author | Michael Byers <ByersJR.Michael@gmail.com> | 2020-01-07 14:57:39 -0500 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2020-02-09 19:24:04 +0100 |
commit | deeece0502595dff0a27ed4ee8159ee64b7fb3ea (patch) | |
tree | 69c9b9fc2f54408fda88d54d66c2015df4ed54cd /gr-blocks/python/blocks/qa_vector_sink_source.py | |
parent | 7d619aed8b8eb185890df2940cbee5de6062c4bd (diff) |
pmt: Fix RuntimeError in pmt_to_python
Python has a RuntimeError that's thrown during the pmt to_python function.
Instead of throwing this error, SWIG has been updated to throw a TypeError.
This allows us to keep the same behavior whereby we iterate over PMT types
until the proper conversion is found
Diffstat (limited to 'gr-blocks/python/blocks/qa_vector_sink_source.py')
-rw-r--r-- | gr-blocks/python/blocks/qa_vector_sink_source.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-blocks/python/blocks/qa_vector_sink_source.py b/gr-blocks/python/blocks/qa_vector_sink_source.py index 103d815dd2..512e8f1df1 100644 --- a/gr-blocks/python/blocks/qa_vector_sink_source.py +++ b/gr-blocks/python/blocks/qa_vector_sink_source.py @@ -65,7 +65,7 @@ class test_vector_sink_source(gr_unittest.TestCase): # vector has sufficient size src_data = [float(x) for x in range(16)] expected_result = tuple(src_data) - self.assertRaises(RuntimeError, lambda : blocks.vector_source_f(src_data, False, 3)) + self.assertRaises(TypeError, lambda : blocks.vector_source_f(src_data, False, 3)) def test_004(self): # Test sending and receiving tagged streams |