mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-109370: Fix unexpected traceback output in test_concurrent_futures (GH-109780)
Follow-up of gh-107219. * Only close the connection writer on Windows. * Also use existing constant _winapi.ERROR_OPERATION_ABORTED instead of WSA_OPERATION_ABORTED.
This commit is contained in:
parent
4091deba88
commit
0b4e090422
2 changed files with 3 additions and 3 deletions
|
@ -521,7 +521,8 @@ class _ExecutorManagerThread(threading.Thread):
|
|||
|
||||
# gh-107219: Close the connection writer which can unblock
|
||||
# Queue._feed() if it was stuck in send_bytes().
|
||||
self.call_queue._writer.close()
|
||||
if sys.platform == 'win32':
|
||||
self.call_queue._writer.close()
|
||||
|
||||
# clean up resources
|
||||
self.join_executor_internals()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue