Skip to content

Commit a3965bc

Browse files
committed
update error test
1 parent aec2984 commit a3965bc

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

test/loading.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,7 @@ end
130130

131131
@testset "Error upon misuse" begin
132132
@gensym A
133-
@test_throws(
134-
"@__FUNCTION__ can only be used within a function",
135-
@eval(module $A; @__FUNCTION__; end)
136-
)
133+
@test_throws ErrorException @eval(module $A; @__FUNCTION__; end)
137134
end
138135

139136
@testset "Callable structs" begin

0 commit comments

Comments
 (0)