diff options
author | Martin Braun <martin.braun@ettus.com> | 2018-06-30 21:23:22 -0700 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2018-07-05 01:48:29 +0200 |
commit | e7f47d87afcc63ce4c622d526a231455102117f7 (patch) | |
tree | 43fcd480bec0f08689e3ed5deeab3b4f8811dbad /gr-blocks/python | |
parent | 739f30e97cdffa0ede5892583668bfd0207a96dd (diff) |
fixup! blocks: hier_block2 now throws RuntimeError instead of ValueError on misuse
Diffstat (limited to 'gr-blocks/python')
-rw-r--r-- | gr-blocks/python/blocks/qa_hier_block2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-blocks/python/blocks/qa_hier_block2.py b/gr-blocks/python/blocks/qa_hier_block2.py index fefe0c3b49..74533ad84b 100644 --- a/gr-blocks/python/blocks/qa_hier_block2.py +++ b/gr-blocks/python/blocks/qa_hier_block2.py @@ -153,7 +153,7 @@ class test_hier_block2(gr_unittest.TestCase): gr.io_signature(1,1,gr.sizeof_int)) nop1 = blocks.nop(gr.sizeof_int) hblock.connect(hblock, nop1) - self.assertRaises(ValueError, + self.assertRaises(RuntimeError, lambda: hblock.disconnect((hblock, -1), nop1)) def test_015_disconnect_input_exceeds(self): |