Skip to content

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

Merged
erlend-aasland merged 3 commits into
python:mainfrom
mhsmith:android-test-skips
Feb 29, 2024
Merged

gh-71052: Add test exclusions to support running the test suite on Android#115918
erlend-aasland merged 3 commits into
python:mainfrom
mhsmith:android-test-skips

Conversation

@mhsmith

@mhsmithmhsmith commented Feb 25, 2024

Copy link
Copy Markdown
Member

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.

Comment threadLib/test/test_fcntl.py Outdated
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Comment threadLib/test/test_os.py
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
Copy Markdown
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
Copy Markdown
MemberAuthor

@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.

@erlend-aaslanderlend-aasland left a comment

Copy link
Copy Markdown
Contributor

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:mainFeb 29, 2024
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 freeto 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.

4 participants

@mhsmith@ericsnowcurrently@erlend-aasland@Eclips4