gh-92886: Fix tests that fail when running with optimizations (-O) in _test_multiprocessing.py
#93233
+29
−23
-O) in _test_multiprocessing.py
#93233