Skip to content

Commit 02461ec

Browse files
authored
Test is only necessary for Julia prior to 1.6
1 parent 2638f9d commit 02461ec

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

test/unit.jl

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,13 @@ end
2626
end
2727

2828
@testset "warn_if_unexpected_params()" begin
29-
params = Dict(:env => ["foo" => "bar"])
30-
@test_logs(
31-
(:warn, "The user provided the `env` kwarg, but SlurmClusterManager.jl's support for the `env` kwarg requires Julia 1.6 or later"),
32-
SlurmClusterManager.warn_if_unexpected_params(params),
33-
)
29+
if Base.VERSION >= v"1.6"
30+
# This test is not relevant for Julia 1.6+
31+
else
32+
params = Dict(:env => ["foo" => "bar"])
33+
@test_logs(
34+
(:warn, "The user provided the `env` kwarg, but SlurmClusterManager.jl's support for the `env` kwarg requires Julia 1.6 or later"),
35+
SlurmClusterManager.warn_if_unexpected_params(params),
36+
)
37+
end
3438
end

0 commit comments

Comments
 (0)