Skip to content

unittest should understand SkipTest at import time during test discovery #61139

@brettcannon

Description

@brettcannon
BPO 16935
Nosy @brettcannon, @vstinner, @ezio-melotti, @merwok, @voidspace, @asvetlov, @cjerdonek, @zware
PRs
  • bpo-30813: Fix unittest when hunting refleaks #2502
  • [3.6] bpo-30813: Fix unittest when hunting refleaks (#2502) #2505
  • [3.5] bpo-30813: Fix unittest when hunting refleaks (#2502) #2506
  • Files
  • issue16935.diff: Allow SkipTest to be raised at module level during discovery
  • issue16935.v2.diff: Version 2, with test and doc change
  • issue16935.v3.diff: Version 3
  • 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/ezio-melotti'
    closed_at = <Date 2013-03-01.12:49:23.465>
    created_at = <Date 2013-01-11.14:43:08.605>
    labels = ['type-bug', 'library']
    title = 'unittest should understand SkipTest at import time during test discovery'
    updated_at = <Date 2017-06-30.11:39:51.110>
    user = 'https://github.com/brettcannon'

    bugs.python.org fields:

    activity = <Date 2017-06-30.11:39:51.110>
    actor = 'pitrou'
    assignee = 'ezio.melotti'
    closed = True
    closed_date = <Date 2013-03-01.12:49:23.465>
    closer = 'ezio.melotti'
    components = ['Library (Lib)']
    creation = <Date 2013-01-11.14:43:08.605>
    creator = 'brett.cannon'
    dependencies = []
    files = ['28884', '29039', '29237']
    hgrepos = []
    issue_num = 16935
    keywords = ['patch']
    message_count = 20.0
    messages = ['179681', '179682', '179700', '179770', '179903', '179904', '179946', '179952', '180877', '181864', '181902', '181909', '182969', '183122', '183256', '183257', '183258', '297375', '297385', '297389']
    nosy_count = 10.0
    nosy_names = ['brett.cannon', 'vstinner', 'ezio.melotti', 'eric.araujo', 'Arfrever', 'michael.foord', 'asvetlov', 'chris.jerdonek', 'python-dev', 'zach.ware']
    pr_nums = ['2502', '2505', '2506']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue16935'
    versions = ['Python 3.4']

    Metadata

    Metadata

    Assignees

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions