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

use pkgutil.resolve_name in unittest.mock #88852

Open
graingert mannequin opened this issue Jul 20, 2021 · 3 comments
Open

use pkgutil.resolve_name in unittest.mock #88852

graingert mannequin opened this issue Jul 20, 2021 · 3 comments
Labels
3.11 only security fixes stdlib Python modules in the Lib dir

Comments

@graingert
Copy link
Mannequin

graingert mannequin commented Jul 20, 2021

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 = 'https://github.com/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']

    @graingert
    Copy link
    Mannequin Author

    graingert mannequin commented Jul 20, 2021

    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.

    @graingert graingert mannequin added 3.11 only security fixes labels Jul 20, 2021
    @miss-islington
    Copy link
    Contributor

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

    @ukarroum
    Copy link
    Mannequin

    ukarroum mannequin commented Jan 21, 2022

    I think we can close this one

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this issue Jan 13, 2023
    https://build.opensuse.org/request/show/1057971
    by user dgarcia + dimstar_suse
    - Add py311-compat.patch to make it compatible with python 3.11
      gh#python/cpython#88852
    @iritkatriel iritkatriel added the stdlib Python modules in the Lib dir label Nov 27, 2023
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.11 only security fixes stdlib Python modules in the Lib dir
    Projects
    Status: No status
    Development

    No branches or pull requests

    2 participants