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: contextlib test incompatibility with non-refcounted GC
Type: behavior Stage: resolved
Components: Versions: Python 3.11, Python 3.10
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: ncoghlan Nosy List: lukasz.langa, miss-islington, ncoghlan, yselivanov
Priority: normal Keywords: 3.10regression, patch

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

Pull Requests
URL Status Linked Edit
PR 26910 merged ncoghlan, 2021-06-26 08:42
PR 27379 merged miss-islington, 2021-07-26 20:57
Messages (4)
msg396545 - (view) Author: Nick Coghlan (ncoghlan) * (Python committer) Date: 2021-06-26 08:30
Backporting the latest contextlib module and test suite to contextlib2, I ran into a couple of CI failures on PyPy3.

Investigation showed that a couple of the new test cases were assuming the use of a refcounted GC. One could be fixed by switching to using a synchronous context manager instead of a ``__del__`` method, but the other needed a few explicit gc.collect() calls.
msg398256 - (view) Author: Łukasz Langa (lukasz.langa) * (Python committer) Date: 2021-07-26 20:57
New changeset a2c45e5bcf9d3dfff9f2699dbc161489897616b5 by Nick Coghlan in branch 'main':
bpo-44515: handle non-refcounted GC in contextlib tests (GH-26910)
https://github.com/python/cpython/commit/a2c45e5bcf9d3dfff9f2699dbc161489897616b5
msg398259 - (view) Author: Łukasz Langa (lukasz.langa) * (Python committer) Date: 2021-07-26 21:21
New changeset 0ea5e0d792a85b435ef299319dcd52e59f535cb1 by Miss Islington (bot) in branch '3.10':
bpo-44515: handle non-refcounted GC in contextlib tests (GH-26910) (GH-27379)
https://github.com/python/cpython/commit/0ea5e0d792a85b435ef299319dcd52e59f535cb1
msg398260 - (view) Author: Łukasz Langa (lukasz.langa) * (Python committer) Date: 2021-07-26 21:23
Thanks, Nick! ✨ 🍰 ✨
History
Date User Action Args
2022-04-11 14:59:47adminsetgithub: 88681
2021-07-26 21:23:27lukasz.langasetstatus: open -> closed
resolution: fixed
messages: + msg398260

stage: patch review -> resolved
2021-07-26 21:21:45lukasz.langasetmessages: + msg398259
2021-07-26 20:57:41lukasz.langasetnosy: + lukasz.langa
messages: + msg398256
2021-07-26 20:57:27miss-islingtonsetnosy: + miss-islington
pull_requests: + pull_request25914
2021-06-26 08:42:04ncoghlansetkeywords: + patch
stage: commit review -> patch review
pull_requests: + pull_request25486
2021-06-26 08:30:21ncoghlansetversions: + Python 3.10, Python 3.11
2021-06-26 08:30:11ncoghlancreate