Skip to content

Have importlib.reload() raise ModuleNotFoundError when a spec can't be found #74037

@richardcooper

Description

@richardcooper
BPO 29851
Nosy @brettcannon, @ncoghlan, @ericsnowcurrently, @serhiy-storchaka
PRs
  • bpo-29851: Have importlib.reload() raise ImportError if the module's spec is not found #972
  • Files
  • bug.py: Repo testcase
  • 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 2017-05-24.22:20:40.688>
    created_at = <Date 2017-03-19.00:09:56.344>
    labels = ['3.7', 'easy', 'type-feature', 'library']
    title = "Have importlib.reload() raise ModuleNotFoundError when a spec can't be found"
    updated_at = <Date 2017-05-24.22:20:40.688>
    user = 'https://bugs.python.org/RichardCooper'

    bugs.python.org fields:

    activity = <Date 2017-05-24.22:20:40.688>
    actor = 'brett.cannon'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-05-24.22:20:40.688>
    closer = 'brett.cannon'
    components = ['Library (Lib)']
    creation = <Date 2017-03-19.00:09:56.344>
    creator = 'Richard Cooper'
    dependencies = []
    files = ['46737']
    hgrepos = []
    issue_num = 29851
    keywords = ['easy']
    message_count = 5.0
    messages = ['289834', '289903', '291081', '291125', '294405']
    nosy_count = 5.0
    nosy_names = ['brett.cannon', 'ncoghlan', 'eric.snow', 'serhiy.storchaka', 'Richard Cooper']
    pr_nums = ['972']
    priority = 'low'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue29851'
    versions = ['Python 3.7']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of lifeeasystdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions