You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Rewrite asyncio.to_thread tests to use IsolatedAsyncioTestCase #91260
New changeset 9e1bfd8 by Miss Islington (bot) in branch '3.10': bpo-47104: Rewrite asyncio.to_thread tests to use IsolatedAsyncioTestCase (GH-32086) 9e1bfd8
0:00:00 load avg: 0.93 [1/2/1] test_asyncio.test_threads failed (env changed)
Warning -- threading._dangling was modified by test_asyncio.test_threads
Before: {<weakref at 0x7f3b2e77fa10; to '_MainThread' at 0x7f3b2f107490>}
After: {<weakref at 0x7f3b2e77ffb0; to '_MainThread' at 0x7f3b2f107490>}
Activity
asvetlov commentedon Mar 23, 2022
New changeset ff619c7 by Andrew Svetlov in branch 'main':
bpo-47104: Rewrite asyncio.to_thread tests to use IsolatedAsyncioTestCase (GH-32086)
ff619c7
miss-islington commentedon Mar 23, 2022
New changeset 9e1bfd8 by Miss Islington (bot) in branch '3.10':
bpo-47104: Rewrite asyncio.to_thread tests to use IsolatedAsyncioTestCase (GH-32086)
9e1bfd8
2 remaining items
Fidget-Spinner commentedon Apr 6, 2022
I forgot to specify, that this is *only* on 3.10, not main.
kumaraditya303 commentedon Apr 18, 2022
The test is failing on GH Actions too on 3.10 branch, it should be reverted until a fix is found.
See #91667
gpshead commentedon Apr 18, 2022
Using
python -m test.bisect_cmd test_asyncio --fail-env-changedin a 3.10 build I got:gpshead commentedon Apr 18, 2022
gpshead commentedon Apr 18, 2022
I don't think this PR is the cause, just a code tweak that causes it to be exposed more often. Other tests lead to
which is an environment change warning codepath from
test.support.threading_helperwhich the test_asyncio.test_threads code no longer calls. from CI run https://github.com/python/cpython/runs/6069450575?check_suite_focus=truegpshead commentedon Apr 18, 2022
tracked in #91676 now as this issue's PR is merely a tickler of a latent problem, not the cause.
[3.10] gh-91676 gh-91260 unittest.IsolatedAsyncioTestCase no longer l…
[3.10] pythongh-91676 pythongh-91260 unittest.IsolatedAsyncioTestCase…
kumaraditya303 commentedon Apr 19, 2022
Closing as it is now tracked in #91676
[3.10] gh-91676 gh-91260 unittest.IsolatedAsyncioTestCase no longer l…
[3.10] pythongh-91676 pythongh-91260 unittest.IsolatedAsyncioTestCase…