Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Increase wait time for NetBSD in check_resource_tracker_death
  • Loading branch information
furkanonder committed Oct 16, 2024
commit a3f1610fa250417cc3a18641a56746abe2d35b87
5 changes: 4 additions & 1 deletion Lib/test/_test_multiprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -5730,7 +5730,10 @@ def check_resource_tracker_death(self, signum, should_die):
pid = _resource_tracker._pid

os.kill(pid, signum)
time.sleep(1.0) # give it time to die
if sys.platform.startswith("netbsd") and should_die:
time.sleep(60.0 * 3) # give it more time to die on netbsd
Comment thread
furkanonder marked this conversation as resolved.
Outdated
else:
time.sleep(1.0) # give it more time to die
Comment thread
furkanonder marked this conversation as resolved.
Outdated

ctx = multiprocessing.get_context("spawn")
with warnings.catch_warnings(record=True) as all_warn:
Expand Down