GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — gh-109370: Fix unexpected traceback output in test_concurrent_futures · serhiy-storchaka/cpython@3030774

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • Lib
    • concurrent/futures
      • process.py
    • multiprocessing
      • connection.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Lib/concurrent/futures/process.py‎

Copy file name to clipboardExpand all lines: Lib/concurrent/futures/process.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,8 @@ def terminate_broken(self, cause):
521521

522522
# gh-107219: Close the connection writer which can unblock
523523
# Queue._feed() if it was stuck in send_bytes().
524-
self.call_queue._writer.close()
524+
if sys.platform == 'win32':
525+
self.call_queue._writer.close()
525526

526527
# clean up resources
527528
self.join_executor_internals()
Collapse file

‎Lib/multiprocessing/connection.py‎

Copy file name to clipboardExpand all lines: Lib/multiprocessing/connection.py
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
BUFSIZE = 8192
4343
# A very generous timeout when it comes to local connections...
4444
CONNECTION_TIMEOUT = 20.
45-
WSA_OPERATION_ABORTED = 995
4645

4746
_mmap_counter = itertools.count()
4847

@@ -300,7 +299,7 @@ def _send_bytes(self, buf):
300299
finally:
301300
self._send_ov = None
302301
nwritten, err = ov.GetOverlappedResult(True)
303-
if err == WSA_OPERATION_ABORTED:
302+
if err == _winapi.ERROR_OPERATION_ABORTED:
304303
# close() was called by another thread while
305304
# WaitForMultipleObjects() was waiting for the overlapped
306305
# operation.

0 commit comments

Comments
0 (0)
You are visitor 01402605 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.