[Python-checkins] r54805 - python/branches/release25-maint/Lib/test/test_pty.py (original) (raw)

barry.warsaw python-checkins at python.org
Fri Apr 13 18:12:05 CEST 2007


Author: barry.warsaw Date: Fri Apr 13 18:12:02 2007 New Revision: 54805

Modified: python/branches/release25-maint/Lib/test/test_pty.py Log: Add code to read from master_fd in the parent, breaking when we get an OSError (EIO can occur on Linux) or there's no more data to read. Without this, test_pty.py can hang on the waitpid() because the child is blocking on the stdout write. This will definitely happen on Mac OS X and could potentially happen on other platforms. See the comment for details.

Modified: python/branches/release25-maint/Lib/test/test_pty.py

--- python/branches/release25-maint/Lib/test/test_pty.py (original) +++ python/branches/release25-maint/Lib/test/test_pty.py Fri Apr 13 18:12:02 2007 @@ -115,6 +115,24 @@ os._exit(4) else: debug("Waiting for child (%d) to finish."%pid)



More information about the Python-checkins mailing list