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.

classification
Title: test_spawn_doesnt_hang (test.test_pty.PtyTest) fails when stdin isn't readable
Type: Stage: patch review
Components: Versions:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Alexander Kanavin, python-dev
Priority: normal Keywords: patch

Created on 2021-09-16 15:38 by Alexander Kanavin, last changed 2022-04-11 14:59 by admin.

Pull Requests
URL Status Linked Edit
PR 28388 open python-dev, 2021-09-16 15:39
Messages (1)
msg401961 - (view) Author: Alexander Kanavin (Alexander Kanavin) * Date: 2021-09-16 15:38
I am observing the following under yocto's test harness:
    ======================================================================
    ERROR: test_spawn_doesnt_hang (test.test_pty.PtyTest)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib/python3.10/test/test_pty.py", line 316, in test_spawn_doesnt_hang
        pty.spawn([sys.executable, '-c', 'print("hi there")'])
      File "/usr/lib/python3.10/pty.py", line 181, in spawn
        _copy(master_fd, master_read, stdin_read)
      File "/usr/lib/python3.10/pty.py", line 157, in _copy
        data = stdin_read(STDIN_FILENO)
      File "/usr/lib/python3.10/pty.py", line 132, in _read
        return os.read(fd, 1024)
    OSError: [Errno 5] Input/output error


The same tests runs fine in a regular console.
History
Date User Action Args
2022-04-11 14:59:50adminsetgithub: 89386
2021-09-16 15:39:19python-devsetkeywords: + patch
nosy: + python-dev

pull_requests: + pull_request26801
stage: patch review
2021-09-16 15:38:35Alexander Kanavincreate