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.
Created on 2016年11月13日 20:39 by xdegaye, last changed 2022年04月11日 14:58 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| test_asyncio.log | xdegaye, 2016年11月13日 20:39 | |||
| test_asyncio_bind.patch | xdegaye, 2016年11月17日 12:45 | review | ||
| Pull Requests | |||
|---|---|---|---|
| URL | Status | Linked | Edit |
| PR 4503 | merged | xdegaye, 2017年11月22日 17:00 | |
| PR 4547 | merged | xdegaye, 2017年11月24日 17:38 | |
| Messages (5) | |||
|---|---|---|---|
| msg280714 - (view) | Author: Xavier de Gaye (xdegaye) * (Python triager) | Date: 2016年11月13日 20:39 | |
Tests in test_asyncio fail on Android when bind() on a unix socket raises PermissionError for a non-root user. See the attached test_asyncio.log. See also issue 28683 and its patch(es). |
|||
| msg280769 - (view) | Author: STINNER Victor (vstinner) * (Python committer) | Date: 2016年11月14日 13:03 | |
I suggest to write a decorator in Lib/asyncio/test_utils.py to skip AF_UNIX tests on Android if os.getuid() != 0. Another approach is to catch the PermissionError and re-raises an unittest.SkipTest. Begin by modifying unix_socket_path() context manager in Lib/asyncio/test_utils.py. I prefer the approach catching PermissionError: it allows to run unit tests on a flavor of Android which doesn't raise PermissionError, and it handles PermissionError on other platforms. |
|||
| msg281038 - (view) | Author: Xavier de Gaye (xdegaye) * (Python triager) | Date: 2016年11月17日 12:45 | |
With this patch, test_asyncio runs successfully with no ResourceWarning when run on the android-24 emulator. |
|||
| msg306904 - (view) | Author: Xavier de Gaye (xdegaye) * (Python triager) | Date: 2017年11月24日 16:35 | |
New changeset 0f86cd38f4a38f25a4aed3759a654a4b7fa49031 by xdegaye in branch 'master': bpo-28684: asyncio tests handle PermissionError raised on binding unix sockets (GH-4503) https://github.com/python/cpython/commit/0f86cd38f4a38f25a4aed3759a654a4b7fa49031 |
|||
| msg306911 - (view) | Author: Xavier de Gaye (xdegaye) * (Python triager) | Date: 2017年11月24日 17:56 | |
New changeset 5742f674f7561dc9a1fc66d650e18e31b941183b by xdegaye in branch 'master': bpo-28684: Remove useless import added by the previous commit (GH-4547) https://github.com/python/cpython/commit/5742f674f7561dc9a1fc66d650e18e31b941183b |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:39 | admin | set | github: 72870 |
| 2017年11月24日 17:56:24 | xdegaye | set | messages: + msg306911 |
| 2017年11月24日 17:38:09 | xdegaye | set | pull_requests: + pull_request4477 |
| 2017年11月24日 16:36:58 | xdegaye | set | status: open -> closed resolution: fixed stage: patch review -> resolved |
| 2017年11月24日 16:35:58 | xdegaye | set | messages: + msg306904 |
| 2017年11月24日 16:27:06 | xdegaye | set | versions: - Python 3.6 |
| 2017年11月22日 17:00:38 | xdegaye | set | pull_requests: + pull_request4441 |
| 2016年11月21日 15:40:04 | xdegaye | link | issue26865 dependencies |
| 2016年11月17日 21:25:12 | giampaolo.rodola | set | nosy:
- giampaolo.rodola |
| 2016年11月17日 21:24:27 | gvanrossum | set | nosy:
- gvanrossum |
| 2016年11月17日 12:45:48 | xdegaye | set | files:
+ test_asyncio_bind.patch keywords: + patch messages: + msg281038 stage: needs patch -> patch review |
| 2016年11月14日 13:03:52 | vstinner | set | messages: + msg280769 |
| 2016年11月13日 20:39:34 | xdegaye | create | |