Skip to content

Commit

Permalink
Increase wait time for NetBSD in check_resource_tracker_death
Browse files Browse the repository at this point in the history
  • Loading branch information
furkanonder committed Oct 16, 2024
1 parent fcef3fc commit a3f1610
Showing 1 changed file with 4 additions and 1 deletion.
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
else:
time.sleep(1.0) # give it more time to die

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

0 comments on commit a3f1610

Please sign in to comment.