Skip to content

Commit 1e845c5

Browse files
committed
tests: do not check all fields of UndefVarError for egal
Refs: JuliaLang/julia#51979
1 parent 8799660 commit 1e845c5

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test/distributed_exec.jl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -971,13 +971,15 @@ wid = workers()[1]
971971
remotecall_fetch(()->T16091, wid)
972972
false
973973
catch ex
974-
((ex::RemoteException).captured::CapturedException).ex === UndefVarError(:T16091)
974+
ex = ((ex::RemoteException).captured::CapturedException).ex
975+
@test (ex::UndefVarError).var === :T16091
975976
end
976977
@test try
977978
remotecall_fetch(identity, wid, T16091)
978979
false
979980
catch ex
980-
((ex::RemoteException).captured::CapturedException).ex === UndefVarError(:T16091)
981+
ex = ((ex::RemoteException).captured::CapturedException).ex
982+
@test (ex::UndefVarError).var === :T16091
981983
end
982984

983985
f16091a() = 1
@@ -1555,7 +1557,8 @@ try
15551557
catch ex
15561558
@test isa(ex.captured.ex.exceptions[1].ex, ErrorException)
15571559
@test occursin("BoundsError", ex.captured.ex.exceptions[1].ex.msg)
1558-
@test ex.captured.ex.exceptions[2].ex == UndefVarError(:DontExistOn1)
1560+
ex = ex.captured.ex.exceptions[2].ex
1561+
@test (ex::UndefVarError).var === :DontExistOn1
15591562
end
15601563

15611564
let

0 commit comments

Comments
 (0)