Skip to content

Commit

Permalink
Better name for timeout checker inner
Browse files Browse the repository at this point in the history
  • Loading branch information
boxed committed Oct 27, 2024
1 parent 56ba666 commit a6bfe3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mutmut/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1174,7 +1174,7 @@ def stop_all_children(mutants):


def timeout_checker(mutants):
def inner():
def inner_timout_checker():
while True:
sleep(1)

Expand All @@ -1184,7 +1184,7 @@ def inner():
run_time = now - start_time
if run_time.total_seconds() > (m.estimated_time_of_tests_by_mutant[mutant_name] + 1) * 4:
os.kill(pid, signal.SIGXCPU)
return inner
return inner_timout_checker


@cli.command()
Expand Down

0 comments on commit a6bfe3a

Please sign in to comment.