Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bpo-39481: fix test_genericalias on Android#19469

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
gvanrossum merged 1 commit intopython:masterfromyan12125:fix-android-test_genericalias
Apr 13, 2020
Merged

bpo-39481: fix test_genericalias on Android#19469

gvanrossum merged 1 commit intopython:masterfromyan12125:fix-android-test_genericalias
Apr 13, 2020

Conversation

@yan12125
Copy link
Contributor

@yan12125yan12125 commentedApr 11, 2020
edited by miss-islington
Loading

(I'm not sure if it's correct to referbpo-39481 or not. Sorry if I did it wrong.)

Android bionic does not implementshm_open/shm_unlink [1]. As a
result_posixshmem extension does not exist and
multiprocessing.shared_memory cannot be imported.

0:01:48 load avg: 1.53 [159/421/7] test_genericalias failedtest test_genericalias crashed -- Traceback (most recent call last):  File "/data/local/tmp/lib/python3.9/test/libregrtest/runtest.py", line 270, in _runtest_inner    refleak = _runtest_inner2(ns, test_name)  File "/data/local/tmp/lib/python3.9/test/libregrtest/runtest.py", line 221, in _runtest_inner2    the_module = importlib.import_module(abstest)  File "/data/local/tmp/lib/python3.9/importlib/__init__.py", line 127, in import_module    return _bootstrap._gcd_import(name[level:], package, level)  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked  File "<frozen importlib._bootstrap_external>", line 790, in exec_module  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed  File "/data/local/tmp/lib/python3.9/test/test_genericalias.py", line 22, in <module>    from multiprocessing.shared_memory import ShareableList  File "/data/local/tmp/lib/python3.9/multiprocessing/shared_memory.py", line 23, in <module>    import _posixshmemModuleNotFoundError: No module named '_posixshmem'

[1]https://android.googlesource.com/platform/bionic/+/master/docs/status.md

https://bugs.python.org/issue39481

Automerge-Triggered-By:@gvanrossum

Android bionic does not implement shm_open/shm_unlink [1]. As aresult _posixshmem extension does not exist andmultiprocessing.shared_memory cannot be imported.0:01:48 load avg: 1.53 [159/421/7] test_genericalias failedtest test_genericalias crashed -- Traceback (most recent call last):  File "/data/local/tmp/lib/python3.9/test/libregrtest/runtest.py", line 270, in _runtest_inner    refleak = _runtest_inner2(ns, test_name)  File "/data/local/tmp/lib/python3.9/test/libregrtest/runtest.py", line 221, in _runtest_inner2    the_module = importlib.import_module(abstest)  File "/data/local/tmp/lib/python3.9/importlib/__init__.py", line 127, in import_module    return _bootstrap._gcd_import(name[level:], package, level)  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked  File "<frozen importlib._bootstrap_external>", line 790, in exec_module  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed  File "/data/local/tmp/lib/python3.9/test/test_genericalias.py", line 22, in <module>    from multiprocessing.shared_memory import ShareableList  File "/data/local/tmp/lib/python3.9/multiprocessing/shared_memory.py", line 23, in <module>    import _posixshmemModuleNotFoundError: No module named '_posixshmem'[1]https://android.googlesource.com/platform/bionic/+/master/docs/status.md
Copy link
Member

@gvanrossumgvanrossum left a comment

Choose a reason for hiding this comment

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

Thanks, good catch.

yan12125 reacted with thumbs up emoji
@gvanrossumgvanrossum merged commit25a6833 intopython:masterApr 13, 2020
@yan12125yan12125 deleted the fix-android-test_genericalias branchApril 14, 2020 00:35
@yan12125
Copy link
ContributorAuthor

Thanks!

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@gvanrossumgvanrossumgvanrossum approved these changes

Assignees

No one assigned

Labels

skip newstestsTests in the Lib/test dir

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@yan12125@gvanrossum@the-knights-who-say-ni@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp