Skip to content

Python Unittest does not return results object when the test is skipped #85786

@Tabrizian

Description

@Tabrizian
mannequin
BPO 41620
Nosy @terryjreedy, @rbtcollins, @ezio-melotti, @voidspace, @ambv, @serhiy-storchaka, @miss-islington, @iritkatriel, @Tabrizian
PRs
  • bpo-41620: Return the result when the test is being skipped #21944
  • bpo-41620: TestCase.run() now always return a TestResult instance #28030
  • [3.10] bpo-41620: TestCase.run() now always return a TestResult instance (GH-28030) #28064
  • [3.9] bpo-41620: TestCase.run() now always return a TestResult instance (GH-28030) #28065
  • 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 2021-08-30.13:44:34.182>
    created_at = <Date 2020-08-23.17:50:44.086>
    labels = ['easy', 'type-bug', '3.9', '3.10', '3.11', 'library']
    title = 'Python Unittest does not return results object when the test is skipped'
    updated_at = <Date 2021-08-30.13:44:34.182>
    user = 'https://github.com/Tabrizian'

    bugs.python.org fields:

    activity = <Date 2021-08-30.13:44:34.182>
    actor = 'lukasz.langa'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-08-30.13:44:34.182>
    closer = 'lukasz.langa'
    components = ['Library (Lib)']
    creation = <Date 2020-08-23.17:50:44.086>
    creator = 'Tabrizian'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 41620
    keywords = ['patch', 'easy']
    message_count = 9.0
    messages = ['375820', '376074', '393760', '393769', '400061', '400595', '400602', '400603', '400604']
    nosy_count = 9.0
    nosy_names = ['terry.reedy', 'rbcollins', 'ezio.melotti', 'michael.foord', 'lukasz.langa', 'serhiy.storchaka', 'miss-islington', 'iritkatriel', 'Tabrizian']
    pr_nums = ['21944', '28030', '28064', '28065']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue41620'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.11only security fixes3.9 (EOL)end of lifeeasystdlibStandard 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