]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-110673: test_pty raises on short write (GH-110677) (#110742)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 12 Oct 2023 08:10:00 +0000 (10:10 +0200)
committerGitHub <noreply@github.com>
Thu, 12 Oct 2023 08:10:00 +0000 (10:10 +0200)
commitea344e7a05b2564eb0657c1a46894f94ee0b6001
tree8b253d2632a45830c4100a28c6373307afff25ca
parentdbbe0eebf0a53fe5f9f9467b4bb85ec16989c0f0
[3.12] gh-110673: test_pty raises on short write (GH-110677) (#110742)

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