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: Add missing tests for FlushKey, LoadKey, and SaveKey in winreg
Type: behavior Stage: needs patch
Components: Extension Modules, Tests, Windows Versions: Python 3.11, Python 3.10, Python 3.9
process
Status: open Resolution:
Dependencies: 21518 Superseder:
Assigned To: brian.curtin Nosy List: Claudiu.Popa, brian.curtin, nanjekyejoannah, paul.moore, steve.dower, tim.golden, zach.ware
Priority: normal Keywords:

Created on 2010-04-30 18:02 by brian.curtin, last changed 2022-04-11 14:57 by admin.

Messages (4)
msg104655 - (view) Author: Brian Curtin (brian.curtin) * (Python committer) Date: 2010-04-30 18:02
Per the comment at the top of Lib/test/test_winreg.py, FlushKey, LoadKey, and SaveKey are currently untested.

I have a minimal patch worked up. I'll expand on it and upload shortly.
msg106613 - (view) Author: Brian Curtin (brian.curtin) * (Python committer) Date: 2010-05-27 16:28
LoadKey and SaveKey require special privileges which need to manually acquired, likely via ctypes. #1578269 has some code which does this for os.symlink privileges and it's about to go into py3k, so I'll try to piggyback off of that.
msg218883 - (view) Author: PCManticore (Claudiu.Popa) * (Python triager) Date: 2014-05-21 19:41
I'm working on this issue and I have a minimal patch ready, but it depends on issue21518, which proposes adding UnloadKey to winreg, so that we can unload the keys mounted with LoadKey. Also, that issue adds a mechanism for privilege acquisition, which I'll utilize for this issue.
msg346339 - (view) Author: Joannah Nanjekye (nanjekyejoannah) * (Python committer) Date: 2019-06-23 20:09
@Claudiu.Popa are you still interested in working on this, If so please open a pull request for review.
History
Date User Action Args
2022-04-11 14:57:00adminsetgithub: 52825
2021-04-25 16:05:23iritkatrielsetnosy: + paul.moore, tim.golden, zach.ware, steve.dower

components: + Tests
versions: + Python 3.9, Python 3.10, Python 3.11, - Python 2.7, Python 3.4
2019-06-23 20:09:17nanjekyejoannahsetnosy: + nanjekyejoannah
messages: + msg346339
2014-06-13 14:44:47Claudiu.Popasetdependencies: + Expose RegUnLoadKey in winreg
2014-05-21 19:41:04Claudiu.Popasetnosy: + Claudiu.Popa
messages: + msg218883
2013-10-13 18:42:52georg.brandlsetversions: + Python 3.4, - Python 2.6, Python 3.1, Python 3.2
2010-05-27 16:28:05brian.curtinsetmessages: + msg106613
2010-04-30 18:02:29brian.curtincreate