Anonymous avatar Anonymous committed 4579a27

Revert 54805 for 2.5.1 release. Can be applied after 2.5 branch is unfrozen.

Comments (0)

Files changed (1)

Lib/test/test_pty.py

     os._exit(4)
 else:
     debug("Waiting for child (%d) to finish."%pid)
-    # In verbose mode, we have to consume the debug output from the child or
-    # the child will block, causing this test to hang in the parent's
-    # waitpid() call.  The child blocks after a platform-dependent amount of
-    # data is written to its fd.  On Linux 2.6, it's 4000 bytes and the child
-    # won't block, but on OS X even the small writes in the child above will
-    # block it.  Also on Linux, the read() will throw an OSError (input/output
-    # error) when it tries to read past the end of the buffer but the child's
-    # already exited, so catch and discard those exceptions.  It's not worth
-    # checking for EIO.
-    while True:
-        try:
-            data = os.read(master_fd, 80)
-        except OSError:
-            break
-        if not data:
-            break
-        sys.stdout.write(data.replace('\r\n', '\n'))
-
     ##line = os.read(master_fd, 80)
     ##lines = line.replace('\r\n', '\n').split('\n')
     ##if False and lines != ['In child, calling os.setsid()',
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.