Skip to content
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

gh-71052: Add test exclusions to support running the test suite on Android #115918

Merged
merged 3 commits into from Feb 29, 2024

Conversation

mhsmith
Copy link
Member

@mhsmith mhsmith commented Feb 25, 2024

This PR builds on #114889 by @freakboy3742. It marks Android as not supporting subprocesses, and skips some additional tests which can't be run on this platform.

Some multiprocessing-related test changes have been submitted separately in #115917.

Lib/test/test_fcntl.py Outdated Show resolved Hide resolved
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Comment on lines -2495 to +2501
os.chdir(os.sep)
self.assertEqual(set(os.listdir()), set(os.listdir(os.sep)))
# The root directory is not readable on Android, so use a directory
# we created ourselves.
os.chdir(self.dir)
self.assertEqual(set(os.listdir()), expected)
Copy link
Member

Choose a reason for hiding this comment

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

looks good

@mhsmith
Copy link
Member Author

mhsmith commented Feb 29, 2024

@erlend-aasland: You reviewed the equivalent PR for iOS (#114889); would you like to take a look at this one for Android? It's much smaller.

Copy link
Contributor

@erlend-aasland erlend-aasland left a comment

Choose a reason for hiding this comment

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

Looks good to me; thanks!

@erlend-aasland erlend-aasland merged commit 41d5391 into python:main Feb 29, 2024
33 checks passed
woodruffw pushed a commit to woodruffw-forks/cpython that referenced this pull request Mar 4, 2024
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 25, 2024
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants