summaryrefslogtreecommitdiff
path: root/gr-blocks/python/blocks/qa_keep_one_in_n.py
diff options
context:
space:
mode:
authorBen Reynwar <ben@reynwar.net>2013-03-11 20:30:13 -0700
committerBen Reynwar <ben@reynwar.net>2013-03-11 20:30:13 -0700
commitfe9b0ee3ea739ac07321acd31fc5824192cf7cb8 (patch)
tree7a1abd82bd7d726f0b906706a9410576802e7fa8 /gr-blocks/python/blocks/qa_keep_one_in_n.py
parente8bf0ad5a721645f81b7c90743b4867b352d504c (diff)
blocks: Updating testing environment.
Diffstat (limited to 'gr-blocks/python/blocks/qa_keep_one_in_n.py')
-rwxr-xr-xgr-blocks/python/blocks/qa_keep_one_in_n.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/gr-blocks/python/blocks/qa_keep_one_in_n.py b/gr-blocks/python/blocks/qa_keep_one_in_n.py
index 8c5f44b84b..8a13df71f7 100755
--- a/gr-blocks/python/blocks/qa_keep_one_in_n.py
+++ b/gr-blocks/python/blocks/qa_keep_one_in_n.py
@@ -20,8 +20,7 @@
# Boston, MA 02110-1301, USA.
#
-from gnuradio import gr, gr_unittest
-import blocks_swig
+from gnuradio import gr, gr_unittest, blocks
class test_keep_one_in_n(gr_unittest.TestCase):
@@ -35,7 +34,7 @@ class test_keep_one_in_n(gr_unittest.TestCase):
src_data = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
expected_data = (5, 10)
src = gr.vector_source_b(src_data);
- op = blocks_swig.keep_one_in_n(gr.sizeof_char, 5)
+ op = blocks.keep_one_in_n(gr.sizeof_char, 5)
dst = gr.vector_sink_b()
self.tb.connect(src, op, dst)
self.tb.run()