summaryrefslogtreecommitdiff
path: root/gr-blocks/python/qa_keep_one_in_n.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-blocks/python/qa_keep_one_in_n.py')
-rwxr-xr-xgr-blocks/python/qa_keep_one_in_n.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/gr-blocks/python/qa_keep_one_in_n.py b/gr-blocks/python/qa_keep_one_in_n.py
index 8c5f44b84b..f06ed33d6b 100755
--- a/gr-blocks/python/qa_keep_one_in_n.py
+++ b/gr-blocks/python/qa_keep_one_in_n.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
-# Copyright 2012 Free Software Foundation, Inc.
+# Copyright 2012,2013 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
@@ -21,7 +21,7 @@
#
from gnuradio import gr, gr_unittest
-import blocks_swig
+import blocks_swig as blocks
class test_keep_one_in_n(gr_unittest.TestCase):
@@ -34,9 +34,9 @@ class test_keep_one_in_n(gr_unittest.TestCase):
def test_001(self):
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)
- dst = gr.vector_sink_b()
+ src = blocks.vector_source_b(src_data);
+ op = blocks.keep_one_in_n(gr.sizeof_char, 5)
+ dst = blocks.vector_sink_b()
self.tb.connect(src, op, dst)
self.tb.run()
self.assertEqual(dst.data(), expected_data)