File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff 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
153155end
You can’t perform that action at this time.
0 commit comments