]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-110673: test_pty raises on short write (#110677)
authorVictor Stinner <vstinner@python.org>
Wed, 11 Oct 2023 21:30:15 +0000 (23:30 +0200)
committerGitHub <noreply@github.com>
Wed, 11 Oct 2023 21:30:15 +0000 (21:30 +0000)
commitb4e8049766a46a9e6548b18d7e9a0c9f573cd122
treecb8b0356daf54d2d15dcdd279a87564bb2d8b437
parent3ac8e6955fedc35e8646bee7e04be6f20205cc1e
gh-110673: test_pty raises on short write (#110677)

Add write_all() helper function to test_pty to raise an exception on
short write: if os.writes() does not write all bytes. It should not
happen for a PTY.
Lib/test/test_pty.py