diff options
author | Andrej Rode <mail@andrejro.de> | 2018-08-16 14:54:17 +0200 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2018-08-17 18:18:20 +0200 |
commit | 4349a434c169f2d6c358830046aa216e2828af82 (patch) | |
tree | 03beeff49ae917a01a9b5999f15f233db17edff4 | |
parent | 02f12f3e48ba294e176dd1ef86c2ff8c79618007 (diff) |
qa_message: create unicode string with "u" formatter
-rw-r--r-- | gr-blocks/python/blocks/qa_message.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gr-blocks/python/blocks/qa_message.py b/gr-blocks/python/blocks/qa_message.py index 6a50f53b2a..3ee5102519 100644 --- a/gr-blocks/python/blocks/qa_message.py +++ b/gr-blocks/python/blocks/qa_message.py @@ -21,8 +21,6 @@ # Boston, MA 02110-1301, USA. # -from __future__ import unicode_literals - import time from gnuradio import gr, gr_unittest, blocks @@ -66,7 +64,7 @@ class test_message(gr_unittest.TestCase): self.assertEquals(s, msg.to_string()) def test_102_unicodechars(self): - s = "(╯°□°)╯︵ ┻━┻" + s = u"(╯°□°)╯︵ ┻━┻" msg = gr.message_from_string(s) self.assertEquals(s.encode('utf8'), msg.to_string()) |