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: test_importlib leaves stray registry entries on Windows
Type: behavior Stage: resolved
Components: Windows Versions: Python 3.11, Python 3.10, Python 3.9
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: steve.dower Nosy List: miss-islington, paul.moore, steve.dower, tim.golden, zach.ware
Priority: normal Keywords: patch

Created on 2022-02-02 18:14 by steve.dower, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 31086 merged steve.dower, 2022-02-02 18:17
PR 31087 merged miss-islington, 2022-02-02 19:54
PR 31088 merged miss-islington, 2022-02-02 19:55
Messages (4)
msg412388 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2022-02-02 18:14
When running test_importlib.test_windows, it may create registry keys that previously didn't exist. These keys are not fully cleaned up.

Detect if the full key is created and then delete it after the test. If it existed, only delete the specific test key.
msg412393 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2022-02-02 19:54
New changeset 89a0a90c2e0e685bc70206fc45e4413c4f4411ed by Steve Dower in branch 'main':
bpo-46616: Ensures test_importlib.test_windows cleans up registry keys after completion (GH-31086)
https://github.com/python/cpython/commit/89a0a90c2e0e685bc70206fc45e4413c4f4411ed
msg412397 - (view) Author: miss-islington (miss-islington) Date: 2022-02-02 20:23
New changeset 3c6173ca67c019f3eb7a2fc34c5bfc426f99c5b2 by Miss Islington (bot) in branch '3.9':
bpo-46616: Ensures test_importlib.test_windows cleans up registry keys after completion (GH-31086)
https://github.com/python/cpython/commit/3c6173ca67c019f3eb7a2fc34c5bfc426f99c5b2
msg412398 - (view) Author: miss-islington (miss-islington) Date: 2022-02-02 20:25
New changeset 5765eaa13654e5f812a286700da7d6b8e144da0e by Miss Islington (bot) in branch '3.10':
bpo-46616: Ensures test_importlib.test_windows cleans up registry keys after completion (GH-31086)
https://github.com/python/cpython/commit/5765eaa13654e5f812a286700da7d6b8e144da0e
History
Date User Action Args
2022-04-11 14:59:55adminsetgithub: 90774
2022-02-02 20:33:48steve.dowersetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2022-02-02 20:25:49miss-islingtonsetmessages: + msg412398
2022-02-02 20:23:58miss-islingtonsetmessages: + msg412397
2022-02-02 19:55:04miss-islingtonsetpull_requests: + pull_request29272
2022-02-02 19:54:56miss-islingtonsetnosy: + miss-islington
pull_requests: + pull_request29271
2022-02-02 19:54:31steve.dowersetmessages: + msg412393
2022-02-02 18:17:25steve.dowersetkeywords: + patch
stage: needs patch -> patch review
pull_requests: + pull_request29270
2022-02-02 18:14:06steve.dowercreate