Skip to content

Incorrect implementation of truncate in test_free_threading for IO #138360

Description

@picnixz

Bug report

Bug description:

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

should be

deftruncate(barrier, b, *ignore):
barrier.wait()
try: b.truncate(0)
exceptBufferError: 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