Skip to content

Provide an example for TestCase.skipTest in unittest doc #81275

Closed

Description

@makdon
mannequin
BPO 37094
Nosy @zware, @miss-islington, @MakDon
PRs
  • bpo-37094: Add example for TestCase.skipTest in unittest doc #13645
  • [3.7] bpo-37094: Add example for TestCase.skipTest in unittest doc (GH-13645) #13701
  • 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 2019-05-31.17:38:09.729>
    created_at = <Date 2019-05-30.01:50:03.399>
    labels = ['3.8', 'type-feature', '3.7', 'docs']
    title = 'Provide an example for TestCase.skipTest in unittest doc'
    updated_at = <Date 2019-05-31.17:38:09.722>
    user = 'https://github.com/makdon'

    bugs.python.org fields:

    activity = <Date 2019-05-31.17:38:09.722>
    actor = 'zach.ware'
    assignee = 'docs@python'
    closed = True
    closed_date = <Date 2019-05-31.17:38:09.729>
    closer = 'zach.ware'
    components = ['Documentation']
    creation = <Date 2019-05-30.01:50:03.399>
    creator = 'makdon'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 37094
    keywords = ['patch']
    message_count = 4.0
    messages = ['343943', '344085', '344086', '344095']
    nosy_count = 4.0
    nosy_names = ['docs@python', 'zach.ware', 'miss-islington', 'makdon']
    pr_nums = ['13645', '13701']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue37094'
    versions = ['Python 3.7', 'Python 3.8']

    Activity

    1. makdon commented on May 30, 2019

      makdonmannequin
      MannequinAuthor

      I found that there's an function TestCase.skipTest(reason)[0] supports skipping test in testing, but there's no example for this function in chapter Skipping tests[1] and expected failures

      I create PR[2] for updating the example for TestCase.skipTest in unittest doc.
      The example is from Lib/unittest/test, the test for unittest.

      I am sorry for that i don't know if the issue tracker support markdown link syntax, so i just copy and paste the link below:

      [0] https://docs.python.org/3.7/library/unittest.html#unittest.TestCase.skipTest
      [1]https://docs.python.org/3.7/library/unittest.html#skipping-tests-and-expected-failures
      [2]#13645

    2. added
      docsDocumentation in the Doc dir
      type-featureA feature request or enhancement
      on May 30, 2019
    3. miss-islington commented on May 31, 2019

      @miss-islington
      Contributor

      New changeset ffed76b by Miss Islington (bot) (Makdon) in branch 'master':
      bpo-37094: Add example for TestCase.skipTest in unittest doc (GH-13645)
      ffed76b

    4. miss-islington commented on May 31, 2019

      @miss-islington
      Contributor

      New changeset 8135455 by Miss Islington (bot) in branch '3.7':
      bpo-37094: Add example for TestCase.skipTest in unittest doc (GH-13645)
      8135455

    5. zware commented on May 31, 2019

      @zware
      Member

      Thanks for the patch!

    6. 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

    No one assigned

      Labels

      3.7 (EOL)end of life3.8 (EOL)end of lifedocsDocumentation in the Doc dirtype-featureA feature request or enhancement

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions