Skip to content

[3.13] Use os.openpty() instead of pty.openpty() in test_ioctl #132878

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 24, 2025

Conversation

serhiy-storchaka
Copy link
Member

pty.openpty() does not work on Android, and it is easier to check availability of os.openpty.

pty.openpty() does not work on Android, and it is easier to check
availability of os.openpty.
@serhiy-storchaka
Copy link
Member Author

!buildbot Android

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @serhiy-storchaka for commit af45ba0 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F132878%2Fmerge

The command will test the builders whose names match following regular expression: Android

The builders matched are:

  • AMD64 Android PR
  • aarch64 Android PR

@serhiy-storchaka
Copy link
Member Author

See #132848 (comment).

It is weird that only 3.13 fails. I am going to apply the same change to main after testing it for 3.13.

There is no benefit of using pty.openpty() over os.openpty(), because the tests fail if os.openpty() does not work.

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

But it's kind of unusual to make a change first in 3.13, and then forward-port it to the main branch. I would suggest to start on main and then backport.

@serhiy-storchaka
Copy link
Member Author

This is because the issue can only be reproduced in 3.13, so it is not possible to test the solution in main.

@serhiy-storchaka serhiy-storchaka merged commit bf6c74d into python:3.13 Apr 24, 2025
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip issue skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants