Skip to content

runpy should check ImportError.name before wrapping it #63970

@ncoghlan

Description

@ncoghlan
BPO 19771
Nosy @ncoghlan, @bitdancer, @ericsnowcurrently, @berkerpeksag, @vadmium, @poleto
Dependencies
  • bpo-14285: Traceback wrong on ImportError while executing a package
  • Files
  • issue_19771_tests.patch: Test cases for this issue.
  • issue_19771.patch
  • issue_19771.patch.v2: Updated patch based on review.
  • issue_19771_runpy.patch.v3: Tests + sys.modules inspection fix
  • issue_19771_runpy.patch.v4
  • bad-pyc.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-12.07:49:09.022>
    created_at = <Date 2013-11-25.12:39:47.093>
    labels = ['easy', 'type-bug', 'library']
    title = 'runpy should check ImportError.name before wrapping it'
    updated_at = <Date 2015-12-19.01:48:27.562>
    user = 'https://github.com/ncoghlan'

    bugs.python.org fields:

    activity = <Date 2015-12-19.01:48:27.562>
    actor = 'martin.panter'
    assignee = 'none'
    closed = True
    closed_date = <Date 2015-12-12.07:49:09.022>
    closer = 'martin.panter'
    components = ['Library (Lib)']
    creation = <Date 2013-11-25.12:39:47.093>
    creator = 'ncoghlan'
    dependencies = ['14285']
    files = ['34988', '34989', '34995', '38437', '40150', '41282']
    hgrepos = []
    issue_num = 19771
    keywords = ['patch', 'easy']
    message_count = 18.0
    messages = ['204334', '205617', '205636', '216934', '216935', '216951', '237829', '237848', '248193', '248241', '255691', '256194', '256195', '256196', '256206', '256268', '256693', '256717']
    nosy_count = 11.0
    nosy_names = ['ncoghlan', 'r.david.murray', 'SilentGhost', 'python-dev', 'eric.snow', 'Anthony.Kong', 'berker.peksag', 'martin.panter', 'Fotis.Koutoulakis', 'luiz.poleto', 'lac']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue19771'
    versions = ['Python 3.5', 'Python 3.6']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      easystdlibStandard 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