Skip to content

Commit

Permalink
Fix diff-prog
Browse files Browse the repository at this point in the history
max_workers was not being passed to the ProcessPoolExecutor,
which made the --bench flag not work as intended.
  • Loading branch information
dc-mak committed Dec 20, 2024
1 parent 6791a6c commit 1ce88c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/diff-prog.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def format_timing(name, value):

def run_tests(prog, test_rel_paths, quiet, max_workers):
test_rel_paths = list(test_rel_paths)
with concurrent.futures.ProcessPoolExecutor() as executor:
with concurrent.futures.ProcessPoolExecutor(max_workers=max_workers) as executor:
failed_tests = 0
timings = []
for test_rel_path, outcome in zip(test_rel_paths, executor.map(prog.get_diff, test_rel_paths), strict=True):
Expand Down

0 comments on commit 1ce88c1

Please sign in to comment.