Skip to content

unittest: _is_relevant_tb_level() fails because tb.tb_frame.f_globals=None #88454

@vstinner

Description

@vstinner
BPO 44288
Nosy @gvanrossum, @vstinner, @markshannon
Superseder
  • bpo-44442: Globals (and presumably builtins) are cleared premuturely in FrameObject
  • 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 2021-06-29.01:37:20.515>
    created_at = <Date 2021-06-02.15:05:01.200>
    labels = ['interpreter-core', '3.11']
    title = 'unittest: _is_relevant_tb_level() fails because tb.tb_frame.f_globals=None'
    updated_at = <Date 2021-06-29.01:37:20.514>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2021-06-29.01:37:20.514>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-06-29.01:37:20.515>
    closer = 'vstinner'
    components = ['Interpreter Core']
    creation = <Date 2021-06-02.15:05:01.200>
    creator = 'vstinner'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 44288
    keywords = []
    message_count = 4.0
    messages = ['394920', '394970', '396260', '396691']
    nosy_count = 3.0
    nosy_names = ['gvanrossum', 'vstinner', 'Mark.Shannon']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '44442'
    type = None
    url = 'https://bugs.python.org/issue44288'
    versions = ['Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.11only security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions