summaryrefslogtreecommitdiff
path: root/gr-blocks/python
diff options
context:
space:
mode:
Diffstat (limited to 'gr-blocks/python')
-rw-r--r--gr-blocks/python/blocks/qa_message.py4
1 files changed, 2 insertions, 2 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):