File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -2211,11 +2211,13 @@ def skip_if_broken_multiprocessing_synchronize():
2211
2211
# a file in /dev/shm/ directory.
2212
2212
import multiprocessing
2213
2213
synchronize .Lock (ctx = multiprocessing .get_context ('fork' ))
2214
- # The explicit fork mp context is required as relying on the
2215
- # default breaks TestResourceTracker.test_resource_tracker_reused
2216
- # when the default start method is not fork as synchronize creates
2217
- # a new multiprocessing.resource_tracker process at module import
2218
- # time via the above call in that scenario. This enables gh-84559.
2214
+ # The explicit fork mp context is required in order for
2215
+ # TestResourceTracker.test_resource_tracker_reused to work.
2216
+ # synchronize creates a new multiprocessing.resource_tracker
2217
+ # process at module import time via the above call in that
2218
+ # scenario. Awkward. This enables gh-84559. No code involved
2219
+ # should have threads at that point so fork() should be safe.
2220
+
2219
2221
except OSError as exc :
2220
2222
raise unittest .SkipTest (f"broken multiprocessing SemLock: { exc !r} " )
2221
2223
You can’t perform that action at this time.
0 commit comments