From fb25b7b971b567c7353fb673bb01cae1f5352f3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mos=C3=A8=20Giordano?= Date: Sun, 1 Mar 2026 14:35:40 +0000 Subject: [PATCH] Prefix with underscores unused local variables --- src/ParallelTestRunner.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ParallelTestRunner.jl b/src/ParallelTestRunner.jl index 4345e6f..ab3bce0 100644 --- a/src/ParallelTestRunner.jl +++ b/src/ParallelTestRunner.jl @@ -493,7 +493,7 @@ dictionary mapping test names to expression that include each test file. """ function find_tests(dir::String) tests = Dict{String, Expr}() - for (rootpath, dirs, files) in walkdir(dir) + for (rootpath, _dirs, files) in walkdir(dir) # find Julia files filter!(files) do file endswith(file, ".jl") && file !== "runtests.jl" @@ -837,7 +837,7 @@ function runtests(mod::Module, args::ParsedArgs; function clear_status() if status_lines_visible[] > 0 - for i in 1:status_lines_visible[]-1 + for _ in 1:(status_lines_visible[]-1) print(io_ctx.stdout, "\033[2K") # Clear entire line print(io_ctx.stdout, "\033[1A") # Move up one line end @@ -1109,7 +1109,7 @@ function runtests(mod::Module, args::ParsedArgs; @async rmprocs(; waitfor=0) # print the output generated by each testset - for (testname, result, output, start, stop) in results + for (testname, result, output, _start, _stop) in results if !isempty(output) print(io_ctx.stdout, "\nOutput generated during execution of '") if result isa Exception || anynonpass(result.value) @@ -1167,7 +1167,7 @@ function runtests(mod::Module, args::ParsedArgs; function collect_results() with_testset(o_ts) do completed_tests = Set{String}() - for (testname, result, output, start, stop) in results + for (testname, result, _output, start, stop) in results push!(completed_tests, testname) if result isa AbstractTestRecord