From anonymous, 10 Months ago, written in Python.
Embed
  1. def test_invalid_utf8_output(qtbot, proc, caplog, py_proc):
  2.     """When a process outputs UTF-8, there should be no crash."""
  3.     with qtbot.waitSignal(proc.finished, timeout=10000):
  4.         proc.start(*py_proc(r"""
  5.            import sys
  6.            sys.stdout.buffer.write(b"a\x80b\n")
  7.            sys.exit(0)
  8.        """))
  9.     assert qutescheme.spawn_output == proc._spawn_format(stdout="a\ufffdb")

Replies to Untitled rss

Title Name Language When
Re: Untitled anonymous python 10 Months ago.