Skip to content

Traceback wrong on ImportError while executing a package #58493

@schlamar

Description

@schlamar
mannequin
BPO 14285
Nosy @ncoghlan, @merwok, @schlamar, @ericsnowcurrently, @vadmium
Files
  • runpy-traceback.patch: Tests but no actual fix
  • finding-spec.patch: Separate test for ImportError wrapping
  • internal-error.patch: Fix by using internal _Error
  • init-ancestor.patch
  • init-ancestor.2.patch: Check ImportError.name
  • init-ancestor.3.patch
  • 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 2015-12-11.07:41:04.107>
    created_at = <Date 2012-03-13.06:50:35.711>
    labels = ['type-bug', 'library']
    title = 'Traceback wrong on ImportError while executing a package'
    updated_at = <Date 2015-12-11.07:41:04.106>
    user = 'https://github.com/schlamar'

    bugs.python.org fields:

    activity = <Date 2015-12-11.07:41:04.106>
    actor = 'ncoghlan'
    assignee = 'none'
    closed = True
    closed_date = <Date 2015-12-11.07:41:04.107>
    closer = 'ncoghlan'
    components = ['Library (Lib)']
    creation = <Date 2012-03-13.06:50:35.711>
    creator = 'schlamar'
    dependencies = []
    files = ['38438', '38439', '41205', '41231', '41254', '41258']
    hgrepos = []
    issue_num = 14285
    keywords = ['patch']
    message_count = 27.0
    messages = ['155574', '223289', '223317', '226945', '236354', '237830', '237849', '237851', '255639', '255690', '255692', '255707', '255716', '255799', '255848', '255849', '255852', '255907', '255957', '255998', '256000', '256010', '256036', '256041', '256187', '256190', '256205']
    nosy_count = 8.0
    nosy_names = ['ncoghlan', 'eric.araujo', 'BreamoreBoy', 'python-dev', 'schlamar', 'eric.snow', 'martin.panter', 'robagar']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue14285'
    versions = ['Python 2.7', 'Python 3.5', 'Python 3.6']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions