Skip to content

use pkgutil.resolve_name in unittest.mock #88852

Description

@graingert
mannequin
BPO 44686
Nosy @graingert, @miss-islington, @ukarroum
PRs
  • bpo-44686 replace unittest.mock._importer with pkgutil.resolve_name #18544
  • 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 = None
    created_at = <Date 2021-07-20.19:29:08.426>
    labels = ['3.11']
    title = 'use pkgutil.resolve_name in unittest.mock'
    updated_at = <Date 2022-01-21.09:11:29.429>
    user = '/graingert'

    bugs.python.org fields:

    activity = <Date 2022-01-21.09:11:29.429>
    actor = 'ukarroum'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = []
    creation = <Date 2021-07-20.19:29:08.426>
    creator = 'graingert'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 44686
    keywords = []
    message_count = 3.0
    messages = ['397905', '397940', '411100']
    nosy_count = 3.0
    nosy_names = ['graingert', 'miss-islington', 'ukarroum']
    pr_nums = ['18544']
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue44686'
    versions = ['Python 3.11']

    Activity

    1. graingert commented on Jul 20, 2021

      graingertmannequin
      MannequinAuthor

      per https://bugs.python.org/issue12915 pkgutil.resolve_name was added for use in mock and other stdlib modules:

      pydoc has locate and resolve, packaging has util.resolve_name, unittest has something else, etc.

    2. miss-islington commented on Jul 21, 2021

      @miss-islington
      Contributor

      New changeset ab7fcc8 by Thomas Grainger in branch 'main':
      bpo-44686 replace unittest.mock._importer with pkgutil.resolve_name (GH-18544)
      ab7fcc8

    3. ukarroum commented on Jan 21, 2022

      ukarroummannequin
      Mannequin

      I think we can close this one

    4. transferred this issue fromon Apr 10, 2022
    5. added
      stdlibStandard Library Python modules in the Lib/ directory
      on Nov 27, 2023
    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.11only security fixesstdlibStandard Library Python modules in the Lib/ directory

      Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions