summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gr-blocks/python/blocks/qa_message.py4
-rw-r--r--gr-digital/python/digital/qa_framer_sink.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/gr-blocks/python/blocks/qa_message.py b/gr-blocks/python/blocks/qa_message.py
index 639001f09a..1a3d250ab3 100644
--- a/gr-blocks/python/blocks/qa_message.py
+++ b/gr-blocks/python/blocks/qa_message.py
@@ -58,8 +58,8 @@ class test_message(gr_unittest.TestCase):
self.assertEquals(0, msg.length())
def test_101(self):
- s = 'This is a test'
- msg = gr.message_from_string(s)
+ s = b'This is a test'
+ msg = gr.message_from_string(s.decode('utf8'))
self.assertEquals(s, msg.to_string())
def test_200(self):
diff --git a/gr-digital/python/digital/qa_framer_sink.py b/gr-digital/python/digital/qa_framer_sink.py
index 555bc121f8..25e2902f72 100644
--- a/gr-digital/python/digital/qa_framer_sink.py
+++ b/gr-digital/python/digital/qa_framer_sink.py
@@ -52,7 +52,7 @@ class test_framker_sink(gr_unittest.TestCase):
header = tuple(2*[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1]) # len=1
pad = (0,) * 100
src_data = code + header + (0,1,0,0,0,0,0,1) + pad
- expected_data = 'A'
+ expected_data = b'A'
rcvd_pktq = gr.msg_queue()
@@ -76,7 +76,7 @@ class test_framker_sink(gr_unittest.TestCase):
header = tuple(2*[0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0]) # len=2
pad = (0,) * 100
src_data = code + header + (0,1,0,0,1,0,0,0) + (0,1,0,0,1,0,0,1) + pad
- expected_data = 'HI'
+ expected_data = b'HI'
rcvd_pktq = gr.msg_queue()