[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r10661 - gnuradio/trunk/gnuradio-core/src/python/gnura
From: |
jcorgan |
Subject: |
[Commit-gnuradio] r10661 - gnuradio/trunk/gnuradio-core/src/python/gnuradio/gr |
Date: |
Thu, 19 Mar 2009 21:25:46 -0600 (MDT) |
Author: jcorgan
Date: 2009-03-19 21:25:45 -0600 (Thu, 19 Mar 2009)
New Revision: 10661
Modified:
gnuradio/trunk/gnuradio-core/src/python/gnuradio/gr/qa_hier_block2.py
Log:
Adds QA code for ticket:237 fix
Modified: gnuradio/trunk/gnuradio-core/src/python/gnuradio/gr/qa_hier_block2.py
===================================================================
--- gnuradio/trunk/gnuradio-core/src/python/gnuradio/gr/qa_hier_block2.py
2009-03-20 02:16:20 UTC (rev 10660)
+++ gnuradio/trunk/gnuradio-core/src/python/gnuradio/gr/qa_hier_block2.py
2009-03-20 03:25:45 UTC (rev 10661)
@@ -239,6 +239,18 @@
tb.connect(hb)
tb.run()
self.assertEquals(expected_data, dst.data())
+
+ def test_027_disconnected_internal(self):
+ tb = gr.top_block()
+ hb = gr.hier_block2("block",
+ gr.io_signature(1, 1, 1),
+ gr.io_signature(1, 1, 1))
+ src = gr.vector_source_b([1, ])
+ dst = gr.vector_sink_b()
+ tb.connect(src, hb, dst) # hb is not connected internally
+ self.assertRaises(RuntimeError,
+ lambda: tb.run())
+
if __name__ == "__main__":
gr_unittest.main()
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r10661 - gnuradio/trunk/gnuradio-core/src/python/gnuradio/gr,
jcorgan <=