Skip to content

Queue non-immediate shutdown doesn't unblock getters #117531

Closed
@EpicWink

Description

@EpicWink

Bug report

Bug description:

Caused by #104750

import queue
import threading

q = queue.Queue()
t = threading.Thread(target=q.get)
t.start()
q.shutdown()
t.join(timeout=10.0)
assert not t.is_alive()  # raises AssertionError

Discovered here: #104228 (comment)

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions