classification
Title: access denied for HKEY_PERFORMANCE_DATA
Type: behavior Stage: resolved
Components: Tests, Windows Versions: Python 3.4, Python 3.3, Python 3.2, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: brian.curtin, jkloth, pitrou, python-dev, stutzbach, tim.golden
Priority: normal Keywords: patch

Created on 2012-07-12 16:24 by jkloth, last changed 2012-07-13 23:23 by pitrou. This issue is now closed.

Files
File name Uploaded Description Edit
winreg-2.x.diff jkloth, 2012-07-12 16:24 Patch for Python 2.7 review
winreg-3.x.diff jkloth, 2012-07-12 16:24 Patch for Python 3.2+ review
Messages (10)
msg165320 - (view) Author: Jeremy Kloth (jkloth) * Date: 2012-07-12 16:24
The registry key HKEY_PERFORMANCE_DATA is not accessible for non-interactive users (e.g., buildbot as a service).

The following patches skip the offending test when the tests unless the they are run from an interactive session.
msg165404 - (view) Author: Roundup Robot (python-dev) Date: 2012-07-13 19:11
New changeset ec2caf810e5e by Antoine Pitrou in branch '3.2':
Issue #15334: skip test_dynamic_key when run in non-interactive mode.
http://hg.python.org/cpython/rev/ec2caf810e5e
msg165405 - (view) Author: Roundup Robot (python-dev) Date: 2012-07-13 19:11
New changeset 1242ed59573e by Antoine Pitrou in branch 'default':
Issue #15334: skip test_dynamic_key when run in non-interactive mode.
http://hg.python.org/cpython/rev/1242ed59573e
msg165407 - (view) Author: Roundup Robot (python-dev) Date: 2012-07-13 19:15
New changeset 9bbc4900301c by Antoine Pitrou in branch '2.7':
Issue #15334: skip test_dynamic_key when run in non-interactive mode.
http://hg.python.org/cpython/rev/9bbc4900301c
msg165417 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2012-07-13 20:30
Apparently the patch didn't work:
http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/290/steps/test/logs/stdio
msg165419 - (view) Author: Tim Golden (tim.golden) (Python committer) Date: 2012-07-13 20:40
Take the other approach and catch ACCESS_DENIED and skip?
msg165420 - (view) Author: Roundup Robot (python-dev) Date: 2012-07-13 20:48
New changeset 814927ff4ef2 by Antoine Pitrou in branch '2.7':
Try other approach to fix issue #15334.
http://hg.python.org/cpython/rev/814927ff4ef2
msg165421 - (view) Author: Tim Golden (tim.golden) (Python committer) Date: 2012-07-13 20:49
(I just ran up a service and its environ does include PROMPT, at least 
on an XP machine)
msg165422 - (view) Author: Roundup Robot (python-dev) Date: 2012-07-13 20:51
New changeset dad89e7479e8 by Antoine Pitrou in branch '3.2':
Try other approach to fix issue #15334.
http://hg.python.org/cpython/rev/dad89e7479e8

New changeset b4e4c57637cf by Antoine Pitrou in branch 'default':
Try other approach to fix issue #15334.
http://hg.python.org/cpython/rev/b4e4c57637cf
msg165426 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2012-07-13 23:23
It worked!
History
Date User Action Args
2012-07-13 23:23:20pitrousetstatus: open -> closed
resolution: fixed
messages: + msg165426

stage: resolved
2012-07-13 20:51:39python-devsetmessages: + msg165422
2012-07-13 20:49:51tim.goldensetmessages: + msg165421
2012-07-13 20:48:24python-devsetmessages: + msg165420
2012-07-13 20:40:51tim.goldensetmessages: + msg165419
2012-07-13 20:30:11pitrousetnosy: + pitrou
messages: + msg165417
2012-07-13 19:15:46python-devsetmessages: + msg165407
2012-07-13 19:11:58python-devsetmessages: + msg165405
2012-07-13 19:11:42python-devsetnosy: + python-dev
messages: + msg165404
2012-07-12 16:29:15pitrousetnosy: + tim.golden, stutzbach, brian.curtin
2012-07-12 16:24:38jklothsetfiles: + winreg-3.x.diff
2012-07-12 16:24:12jklothcreate