This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Michael.Felt
Recipients BTaskaya, Michael.Felt, vstinner
Date 2020-04-02.15:30:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1585841427.03.0.683102400381.issue40155@roundup.psfhosted.org>
In-reply-to
Content
To get it to move forward: as it is not solely and AIX thing (see bpo-40-140) 

This works: but is it what is wanted?

Tests result: SUCCESS
aixtools@x064:[/home/aixtools/py39-3.9]git diff
diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py
index eaada1b504..4a5addc6fe 100644
--- a/Lib/test/test_builtin.py
+++ b/Lib/test/test_builtin.py
@@ -1893,12 +1893,18 @@ class PtyTests(unittest.TestCase):
             self.fail("got %d lines in pipe but expected 2, child output was:\n%s"
                       % (len(lines), child_output))

-        # Wait until the child process completes before closing the PTY to
-        # prevent sending SIGHUP to the child process.
-        support.wait_process(pid, exitcode=0)
+        if sys.platform == "linux" or not os.name == "posix":
+            # Wait until the child process completes before closing the PTY to
+            # prevent sending SIGHUP to the child process.
+            support.wait_process(pid, exitcode=0)

-        # Close the PTY
-        os.close(fd)
+            # Close the PTY
+            os.close(fd)
+        else:
+            # Other posix need to close the pty for the child to exit normally
+            # Close the PTY
+            os.close(fd)
+            support.wait_process(pid, exitcode=0)
History
Date User Action Args
2020-04-02 15:30:27Michael.Feltsetrecipients: + Michael.Felt, vstinner, BTaskaya
2020-04-02 15:30:27Michael.Feltsetmessageid: <1585841427.03.0.683102400381.issue40155@roundup.psfhosted.org>
2020-04-02 15:30:27Michael.Feltlinkissue40155 messages
2020-04-02 15:30:26Michael.Feltcreate