]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-110673: test_pty raises on short write (GH-110677) (#110743)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 12 Oct 2023 08:09:49 +0000 (10:09 +0200)
committerGitHub <noreply@github.com>
Thu, 12 Oct 2023 08:09:49 +0000 (10:09 +0200)
commitf98903542c55823bf0f149840d81729003ffc9d0
tree07cc0613fae66f0a79a60d07e0a5b39634038188
parenteb492d32b688534dfa0f956c0e7fa157dfacc2c3
[3.11] gh-110673: test_pty raises on short write (GH-110677) (#110743)

gh-110673: test_pty raises on short write (GH-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.
(cherry picked from commit b4e8049766a46a9e6548b18d7e9a0c9f573cd122)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_pty.py