Skip to content

unittest.TestCase.assertWarns raises RuntimeEror if sys.modules changes size #73806

Description

@kernc
mannequin
BPO 29620
Nosy @akuchling, @ambv, @serhiy-storchaka, @wkschwartz, @kernc, @miss-islington
PRs
  • bpo-29620: iterate over a copy of sys.modules #4800
  • [3.8] bpo-29620: iterate over a copy of sys.modules (GH-4800) #20816
  • [3.7] bpo-29620: iterate over a copy of sys.modules (GH-4800) #20817
  • [3.9] bpo-29620: iterate over a copy of sys.modules (GH-4800) #29605
  • 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 2020-06-11.18:36:06.899>
    created_at = <Date 2017-02-22.16:22:51.894>
    labels = ['3.7', '3.8', 'type-bug', 'library']
    title = 'unittest.TestCase.assertWarns raises RuntimeEror if sys.modules changes size'
    updated_at = <Date 2021-11-18.16:09:52.825>
    user = 'https://github.com/kernc'

    bugs.python.org fields:

    activity = <Date 2021-11-18.16:09:52.825>
    actor = 'lukasz.langa'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-06-11.18:36:06.899>
    closer = 'akuchling'
    components = ['Library (Lib)']
    creation = <Date 2017-02-22.16:22:51.894>
    creator = 'kernc'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 29620
    keywords = ['patch']
    message_count = 9.0
    messages = ['288370', '323821', '356671', '361886', '371315', '371317', '371318', '371319', '406547']
    nosy_count = 8.0
    nosy_names = ['akuchling', 'lukasz.langa', 'serhiy.storchaka', 'William.Schwartz', 'kernc', 'miss-islington', 'Arthit Suriyawongkul', 'Maximilian Peters']
    pr_nums = ['4800', '20816', '20817', '29605']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue29620'
    versions = ['Python 2.7', 'Python 3.6', 'Python 3.7', 'Python 3.8']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of life3.8 (EOL)end of lifestdlibStandard 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