summaryrefslogtreecommitdiff
path: root/gr-blocks/python/blocks/qa_file_source_sink.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-blocks/python/blocks/qa_file_source_sink.py')
-rw-r--r--gr-blocks/python/blocks/qa_file_source_sink.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/gr-blocks/python/blocks/qa_file_source_sink.py b/gr-blocks/python/blocks/qa_file_source_sink.py
index da1a07b347..30c7708a3c 100644
--- a/gr-blocks/python/blocks/qa_file_source_sink.py
+++ b/gr-blocks/python/blocks/qa_file_source_sink.py
@@ -20,6 +20,7 @@
# Boston, MA 02110-1301, USA.
#
+
from gnuradio import gr, gr_unittest, blocks
import os
import tempfile
@@ -34,8 +35,8 @@ class test_file_source_sink(gr_unittest.TestCase):
self.tb = None
def test_001(self):
- src_data = range(1000)
- expected_result = range(1000)
+ src_data = list(range(1000))
+ expected_result = list(range(1000))
snk2 = blocks.vector_sink_f()
@@ -57,8 +58,8 @@ class test_file_source_sink(gr_unittest.TestCase):
self.assertFloatTuplesAlmostEqual(expected_result, result_data)
def test_descriptor_001(self):
- src_data = range(1000)
- expected_result = range(1000)
+ src_data = list(range(1000))
+ expected_result = list(range(1000))
snk2 = blocks.vector_sink_f()
@@ -88,7 +89,7 @@ class test_file_source_sink(gr_unittest.TestCase):
self.assertFloatTuplesAlmostEqual(expected_result, result_data)
def test_file_source_can_seek_after_open(self):
- src_data = range(1000)
+ src_data = list(range(1000))
with tempfile.NamedTemporaryFile() as temp:
src = blocks.vector_source_f(src_data)