SIGN IN SIGN UP

[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>
M
Miss Islington (bot) committed
f98903542c55823bf0f149840d81729003ffc9d0
Parent: eb492d3
Committed by GitHub <noreply@github.com> on 10/12/2023, 8:09:49 AM