Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

access denied for HKEY_PERFORMANCE_DATA #59539

Closed
jkloth opened this issue Jul 12, 2012 · 10 comments
Closed

access denied for HKEY_PERFORMANCE_DATA #59539

jkloth opened this issue Jul 12, 2012 · 10 comments
Labels
OS-windows tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@jkloth
Copy link
Contributor

jkloth commented Jul 12, 2012

BPO 15334
Nosy @pitrou, @tjguk, @jkloth, @briancurtin
Files
  • winreg-2.x.diff: Patch for Python 2.7
  • winreg-3.x.diff: Patch for Python 3.2+
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2012-07-13.23:23:20.511>
    created_at = <Date 2012-07-12.16:24:12.287>
    labels = ['type-bug', 'tests', 'OS-windows']
    title = 'access denied for HKEY_PERFORMANCE_DATA'
    updated_at = <Date 2012-07-13.23:23:20.510>
    user = 'https://github.com/jkloth'

    bugs.python.org fields:

    activity = <Date 2012-07-13.23:23:20.510>
    actor = 'pitrou'
    assignee = 'none'
    closed = True
    closed_date = <Date 2012-07-13.23:23:20.511>
    closer = 'pitrou'
    components = ['Tests', 'Windows']
    creation = <Date 2012-07-12.16:24:12.287>
    creator = 'jkloth'
    dependencies = []
    files = ['26368', '26369']
    hgrepos = []
    issue_num = 15334
    keywords = ['patch']
    message_count = 10.0
    messages = ['165320', '165404', '165405', '165407', '165417', '165419', '165420', '165421', '165422', '165426']
    nosy_count = 6.0
    nosy_names = ['pitrou', 'tim.golden', 'jkloth', 'stutzbach', 'brian.curtin', 'python-dev']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue15334'
    versions = ['Python 2.7', 'Python 3.2', 'Python 3.3', 'Python 3.4']

    @jkloth
    Copy link
    Contributor Author

    jkloth commented Jul 12, 2012

    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.

    @jkloth jkloth added tests Tests in the Lib/test dir OS-windows type-bug An unexpected behavior, bug, or error labels Jul 12, 2012
    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Jul 13, 2012

    New changeset ec2caf810e5e by Antoine Pitrou in branch '3.2':
    Issue bpo-15334: skip test_dynamic_key when run in non-interactive mode.
    http://hg.python.org/cpython/rev/ec2caf810e5e

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Jul 13, 2012

    New changeset 1242ed59573e by Antoine Pitrou in branch 'default':
    Issue bpo-15334: skip test_dynamic_key when run in non-interactive mode.
    http://hg.python.org/cpython/rev/1242ed59573e

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Jul 13, 2012

    New changeset 9bbc4900301c by Antoine Pitrou in branch '2.7':
    Issue bpo-15334: skip test_dynamic_key when run in non-interactive mode.
    http://hg.python.org/cpython/rev/9bbc4900301c

    @pitrou
    Copy link
    Member

    pitrou commented Jul 13, 2012

    @tjguk
    Copy link
    Member

    tjguk commented Jul 13, 2012

    Take the other approach and catch ACCESS_DENIED and skip?

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Jul 13, 2012

    New changeset 814927ff4ef2 by Antoine Pitrou in branch '2.7':
    Try other approach to fix issue bpo-15334.
    http://hg.python.org/cpython/rev/814927ff4ef2

    @tjguk
    Copy link
    Member

    tjguk commented Jul 13, 2012

    (I just ran up a service and its environ does include PROMPT, at least
    on an XP machine)

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Jul 13, 2012

    New changeset dad89e7479e8 by Antoine Pitrou in branch '3.2':
    Try other approach to fix issue bpo-15334.
    http://hg.python.org/cpython/rev/dad89e7479e8

    New changeset b4e4c57637cf by Antoine Pitrou in branch 'default':
    Try other approach to fix issue bpo-15334.
    http://hg.python.org/cpython/rev/b4e4c57637cf

    @pitrou
    Copy link
    Member

    pitrou commented Jul 13, 2012

    It worked!

    @pitrou pitrou closed this as completed Jul 13, 2012
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    OS-windows tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    3 participants