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.

classification
Title: tests fail when using pure-python instead of _asyncio
Type: behavior Stage: resolved
Components: asyncio Versions: Python 3.11, Python 3.10, Python 3.9
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: asvetlov, lukasz.langa, mattip, miss-islington, pablogsal, serhiy.storchaka, yselivanov
Priority: release blocker Keywords: patch

Created on 2021-08-26 08:34 by mattip, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 27968 merged serhiy.storchaka, 2021-08-26 10:24
PR 27969 merged miss-islington, 2021-08-26 12:48
PR 27970 merged miss-islington, 2021-08-26 12:48
Messages (5)
msg400322 - (view) Author: mattip (mattip) * Date: 2021-08-26 08:34
PyPy has no asyncio c-extension module _asyncio. I see stdlib test failures when running the tests in test/test_asyncio/*.py. If I disable _asyncio in Lib/asyncio/events.py (at the end of the file) I see similar failures in CPython3.8 on Ubuntu 20.04 in

test_buffered_proto.py test_buffered_proto_create_connection

test_sslproto.py test_create_connection_memory_leak, test_handshake_timeout, test_start_tls_client_buf_proto_1, 

Also this test depends on _CFuture
test_futures.py
msg400333 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2021-08-26 10:27
I do not know why asyncio.events._get_running_loop was patched in FunctionalTestCaseMixin.
msg400343 - (view) Author: Łukasz Langa (lukasz.langa) * (Python committer) Date: 2021-08-26 12:48
New changeset 7dc505b8655b3e48b93a4274dfd26e5856d9c64f by Serhiy Storchaka in branch 'main':
bpo-45011: Fix test_asyncio without C module _asyncio (GH-27968)
https://github.com/python/cpython/commit/7dc505b8655b3e48b93a4274dfd26e5856d9c64f
msg400345 - (view) Author: miss-islington (miss-islington) Date: 2021-08-26 13:41
New changeset 9f814beadb3ee2c7b37e949a2acf72117a449ffd by Miss Islington (bot) in branch '3.10':
bpo-45011: Fix test_asyncio without C module _asyncio (GH-27968)
https://github.com/python/cpython/commit/9f814beadb3ee2c7b37e949a2acf72117a449ffd
msg400361 - (view) Author: Łukasz Langa (lukasz.langa) * (Python committer) Date: 2021-08-26 17:56
New changeset 970533e65c1a1129dfc1cc1867f6ad075f7f5bf6 by Miss Islington (bot) in branch '3.9':
[3.9] bpo-45011: Fix test_asyncio without C module _asyncio (GH-27968) (GH-27970)
https://github.com/python/cpython/commit/970533e65c1a1129dfc1cc1867f6ad075f7f5bf6
History
Date User Action Args
2022-04-11 14:59:49adminsetgithub: 89174
2021-08-26 18:06:38lukasz.langasetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2021-08-26 17:56:57lukasz.langasetmessages: + msg400361
2021-08-26 13:41:38miss-islingtonsetmessages: + msg400345
2021-08-26 12:48:41miss-islingtonsetpull_requests: + pull_request26417
2021-08-26 12:48:36miss-islingtonsetnosy: + miss-islington
pull_requests: + pull_request26416
2021-08-26 12:48:32lukasz.langasetmessages: + msg400343
2021-08-26 10:27:07serhiy.storchakasetpriority: normal -> release blocker
versions: + Python 3.9, Python 3.10, Python 3.11
nosy: + pablogsal, lukasz.langa

messages: + msg400333

type: behavior
2021-08-26 10:24:49serhiy.storchakasetkeywords: + patch
stage: patch review
pull_requests: + pull_request26415
2021-08-26 10:07:38serhiy.storchakasetnosy: + serhiy.storchaka

title: tests fail when using pure-python instead of _asycio -> tests fail when using pure-python instead of _asyncio
2021-08-26 08:34:05mattipcreate