SIGN IN SIGN UP

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