Skip to content

Refactor test_winreg.py to use unittest. #45347

Closed

Description

@varmaa
mannequin
BPO 1006
Nosy @birkenfeld
Files
  • refactor_test_winreg.py.patch
  • 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 = 'https://github.com/birkenfeld'
    closed_at = <Date 2007-08-24.17:39:07.780>
    created_at = <Date 2007-08-24.00:23:08.447>
    labels = ['tests']
    title = 'Refactor test_winreg.py to use unittest.'
    updated_at = <Date 2007-09-02.20:02:17.545>
    user = 'https://bugs.python.org/varmaa'

    bugs.python.org fields:

    activity = <Date 2007-09-02.20:02:17.545>
    actor = 'loewis'
    assignee = 'georg.brandl'
    closed = True
    closed_date = <Date 2007-08-24.17:39:07.780>
    closer = 'georg.brandl'
    components = ['Tests']
    creation = <Date 2007-08-24.00:23:08.447>
    creator = 'varmaa'
    dependencies = []
    files = ['8302']
    hgrepos = []
    issue_num = 1006
    keywords = ['patch']
    message_count = 2.0
    messages = ['55232', '55263']
    nosy_count = 2.0
    nosy_names = ['georg.brandl', 'varmaa']
    pr_nums = []
    priority = 'normal'
    resolution = 'accepted'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue1006'
    versions = ['Python 2.6']

    Activity

    1. varmaa commented on Aug 24, 2007

      varmaamannequin
      MannequinAuthor

      This patch refactors test_winreg.py to use unittest. When this patch is
      applied, Lib/test/output/test_winreg can be removed.

      I also made a few formatting changes to ensure that all lines are
      constrained to 80-characters.

      The original test_winreg.py took a command-line argument, "--remote", to
      specify the name of a remote computer to run tests on. For now, I've
      added a unittest test called "testRemoteMachineRegistryWorks" which
      raises a test_support.TestSkipped exception if the "--remote" argument
      wasn't specified. I'm not sure if this is optimal behavior; it can be
      changed if not, of course.

    2. birkenfeld commented on Aug 24, 2007

      @birkenfeld
      Member

      Thanks! Committed as rev. 57397.

    3. self-assigned this
      on Aug 24, 2007
    4. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Labels

    testsTests in the Lib/test dir

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions