Skip to content

Incorrect implementation of truncate in test_free_threading for IO #138360

@picnixz

Description

@picnixz

Bug report

Bug description:

        def truncate(barrier, b, *ignore):
            barrier.wait()
            try: b.truncate(0)
            except: BufferError  # ignore exported buffer

should be

        def truncate(barrier, b, *ignore):
            barrier.wait()
            try: b.truncate(0)
            except BufferError: pass  # ignore exported buffer

instead.

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions