Skip to content

Commit 39bcb13

Browse files
committed
fix
1 parent 37b9639 commit 39bcb13

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/runtests.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ struct Bad end
147147
@testset "Error messages" begin
148148
@macroexpand @batteries Bad
149149
@macroexpand @batteries Bad typesalt = 0xb6a4b9eeeb03b58b
150-
@test_throws "`typesalt` must be literally `nothing` or an unsigned integer." @macroexpand @batteries Bad typesalt = "ouch"
151-
@test_throws "Unsupported keyword." @macroexpand @batteries Bad does_not_exist = true
152-
@test_throws "Bad keyword argument value" @macroexpand @batteries Bad hash=:nonsense
150+
if VERSION >= v"1.7"
151+
@test_throws "`typesalt` must be literally `nothing` or an unsigned integer." @macroexpand @batteries Bad typesalt = "ouch"
152+
@test_throws "Unsupported keyword." @macroexpand @batteries Bad does_not_exist = true
153+
@test_throws "Bad keyword argument value" @macroexpand @batteries Bad hash=:nonsense
154+
end
153155
end

0 commit comments

Comments
 (0)