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

[doc] unittest.doModuleCleanups() does not exist #91033

Closed
not-my-profile mannequin opened this issue Feb 28, 2022 · 2 comments
Closed

[doc] unittest.doModuleCleanups() does not exist #91033

not-my-profile mannequin opened this issue Feb 28, 2022 · 2 comments
Labels
3.8 only security fixes 3.9 only security fixes 3.10 only security fixes 3.11 bug and security fixes docs Documentation in the Doc dir stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@not-my-profile
Copy link
Mannequin

not-my-profile mannequin commented Feb 28, 2022

BPO 46877
Nosy @gvanrossum, @voidspace, @lisroach, @tirkarthi, @kumaraditya303, @not-my-profile
PRs
  • bpo-43884: Fix asyncio subprocess kill process cleanly when process is blocked #31611
  • bpo-46877: export unittest.doModuleCleanups in unittest package #31613
  • 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 2022-03-03.18:43:29.178>
    created_at = <Date 2022-02-28.06:41:43.857>
    labels = ['type-bug', '3.8', '3.9', '3.10', '3.11', 'library', 'docs']
    title = '[doc] unittest.doModuleCleanups() does not exist'
    updated_at = <Date 2022-03-03.18:43:29.173>
    user = 'https://github.com/not-my-profile'

    bugs.python.org fields:

    activity = <Date 2022-03-03.18:43:29.173>
    actor = 'gvanrossum'
    assignee = 'docs@python'
    closed = True
    closed_date = <Date 2022-03-03.18:43:29.178>
    closer = 'gvanrossum'
    components = ['Documentation', 'Library (Lib)']
    creation = <Date 2022-02-28.06:41:43.857>
    creator = 'push-f'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 46877
    keywords = ['patch']
    message_count = 2.0
    messages = ['414177', '414459']
    nosy_count = 7.0
    nosy_names = ['gvanrossum', 'michael.foord', 'docs@python', 'lisroach', 'xtreak', 'kumaraditya', 'push-f']
    pr_nums = ['31611', '31613']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue46877'
    versions = ['Python 3.8', 'Python 3.9', 'Python 3.10', 'Python 3.11']

    @not-my-profile
    Copy link
    Mannequin Author

    not-my-profile mannequin commented Feb 28, 2022

    The unittest documentation1 describes unittest.doModuleCleanups().

    That function however doesn't exist since it's only in the unittest.case module and not re-exported in the unittest module (unlike addModuleCleanup).

    So I think either the documentation should be corrected or doModuleCleanups should be re-exported in unittest/init.py to match the documentation.

    @not-my-profile not-my-profile mannequin added type-feature A feature request or enhancement 3.8 only security fixes 3.9 only security fixes 3.10 only security fixes 3.11 bug and security fixes labels Feb 28, 2022
    @not-my-profile not-my-profile mannequin added docs Documentation in the Doc dir type-feature A feature request or enhancement 3.8 only security fixes 3.9 only security fixes 3.10 only security fixes 3.11 bug and security fixes labels Feb 28, 2022
    @not-my-profile not-my-profile mannequin added the docs Documentation in the Doc dir label Feb 28, 2022
    @not-my-profile not-my-profile mannequin changed the title unittest.doModuleCleanups() does not exist [doc] unittest.doModuleCleanups() does not exist Feb 28, 2022
    @not-my-profile not-my-profile mannequin changed the title unittest.doModuleCleanups() does not exist [doc] unittest.doModuleCleanups() does not exist Feb 28, 2022
    @gvanrossum
    Copy link
    Member

    New changeset cc40058 by Kumar Aditya in branch 'main':
    bpo-46877: export unittest.doModuleCleanups in unittest package (bpo-31613)
    cc40058

    @gvanrossum gvanrossum added the stdlib Python modules in the Lib dir label Mar 3, 2022
    @gvanrossum gvanrossum added type-bug An unexpected behavior, bug, or error stdlib Python modules in the Lib dir and removed type-feature A feature request or enhancement labels Mar 3, 2022
    @gvanrossum gvanrossum added type-bug An unexpected behavior, bug, or error and removed type-feature A feature request or enhancement labels Mar 3, 2022
    @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
    3.8 only security fixes 3.9 only security fixes 3.10 only security fixes 3.11 bug and security fixes docs Documentation in the Doc dir stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant