8000 gh-117531: Unblock getters after non-immediate queue shutdown by EpicWink · Pull Request #117532 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-117531: Unblock getters after non-immediate queue shutdown #117532

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Apr 10, 2024
Prev Previous commit
Next Next commit
Explicit non-immediate shutdown in test
  • Loading branch information
EpicWink committed Apr 4, 2024
commit f935277af4fac062f12e0b40d9fb6dd62dc43f48
2 changes: 1 addition & 1 deletion Lib/test/test_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ def get():
results = []
get_thread = threading.Thread(target=get)
get_thread.start()
q.shutdown()
q.shutdown(immediate=False)
get_thread.join(timeout=10.0)
self.assertFalse(get_thread.is_alive())
self.assertEqual(len(results), 1)
Expand Down
0