Fix test for invalid guiprocess encoding

This commit is contained in:
Florian Bruhin 2017-12-13 21:12:56 +01:00
parent 922b1e8f10
commit ddcdfa54aa

View File

@ -69,7 +69,8 @@ def test_stdout_malformed_utf8(proc, qtbot, message_mock, py_proc):
order='strict'): order='strict'):
argv = py_proc(r""" argv = py_proc(r"""
import sys import sys
sys.stdout.buffer.write(b"A\x80B") # Using \x81 because it's invalid in UTF-8 and CP1252
sys.stdout.buffer.write(b"A\x81B")
sys.exit(0) sys.exit(0)
""") """)
proc.start(*argv) proc.start(*argv)