Skip to content

Commit 8ef80db

Browse files
authored
Merge pull request #26283 from JuliaLang/aa/isfound
Deprecate contains to occursin, deprecate callable regexes
2 parents ee8086b + 52963fd commit 8ef80db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/distributed_exec.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1301,7 +1301,7 @@ let thrown = false
13011301
thrown = true
13021302
local b = IOBuffer()
13031303
showerror(b, e)
1304-
@test contains(String(take!(b)), "sqrt will only return")
1304+
@test occursin("sqrt will only return", String(take!(b)))
13051305
end
13061306
@test thrown
13071307
end
@@ -1375,7 +1375,7 @@ try
13751375
error("unexpected")
13761376
catch ex
13771377
@test isa(ex.captured.ex.exceptions[1].ex, ErrorException)
1378-
@test contains(ex.captured.ex.exceptions[1].ex.msg, "BoundsError")
1378+
@test occursin("BoundsError", ex.captured.ex.exceptions[1].ex.msg)
13791379
@test ex.captured.ex.exceptions[2].ex == UndefVarError(:DontExistOn1)
13801380
end
13811381

0 commit comments

Comments
 (0)