Commit c2306e7c authored by Kirill Smelkov's avatar Kirill Smelkov

py2: amari.xlog: test_ReverseLineReader: Explicitly make linev to be unicode

Else this test breaks with UnicodeDecodeError when e.g. preparing tdata.
parent 372ed2d0
...@@ -322,6 +322,7 @@ def test_ReverseLineReader(): ...@@ -322,6 +322,7 @@ def test_ReverseLineReader():
'𩸽𩹨', # 4-bytes ----//---- '𩸽𩹨', # 4-bytes ----//----
'{"message":"hello"}', '{"message":"hello"}',
] ]
linev = list(_.decode('utf-8') for _ in linev)
tdata = '\n'.join(linev) + '\n' # text tdata = '\n'.join(linev) + '\n' # text
bdata = tdata.encode('utf-8') # binary bdata = tdata.encode('utf-8') # binary
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment