Skip to content

test_ftplib.test_makeport() fails as "env changes" if a socket operation times out in a thread: TimeoutError is not catched #88525

@vstinner

Description

@vstinner
BPO 44359
Nosy @gvanrossum, @terryjreedy, @orsenthil, @vstinner, @ambv, @corona10, @miss-islington, @shihai1991, @erlend-aasland, @giovanniwijaya
PRs
  • bpo-44359: Fix test_ftplib unhandled thread exceptions #31069
  • [3.10] bpo-44359: Fix test_ftplib unhandled thread exceptions (GH-31069) #31070
  • [3.9] bpo-44359: Fix test_ftplib unhandled thread exceptions (GH-31069) #31071
  • Files
  • test_ftplib_timeout.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 2022-02-02.10:11:32.038>
    created_at = <Date 2021-06-09.07:58:31.610>
    labels = ['tests', '3.9', '3.10', '3.11']
    title = 'test_ftplib.test_makeport() fails as "env changes" if a socket operation times out in a thread: TimeoutError is not catched'
    updated_at = <Date 2022-02-02.10:11:32.038>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2022-02-02.10:11:32.038>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2022-02-02.10:11:32.038>
    closer = 'vstinner'
    components = ['Tests']
    creation = <Date 2021-06-09.07:58:31.610>
    creator = 'vstinner'
    dependencies = []
    files = ['50100']
    hgrepos = []
    issue_num = 44359
    keywords = ['patch']
    message_count = 12.0
    messages = ['395389', '395627', '400735', '401614', '403466', '403758', '412305', '412321', '412323', '412325', '412329', '412330']
    nosy_count = 10.0
    nosy_names = ['gvanrossum', 'terry.reedy', 'orsenthil', 'vstinner', 'lukasz.langa', 'corona10', 'miss-islington', 'shihai1991', 'erlendaasland', 'giovanniwijaya']
    pr_nums = ['31069', '31070', '31071']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue44359'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.11only security fixes3.9 (EOL)end of lifetestsTests in the Lib/test dir

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions