|
try |
|
sum(DA, dims=-1) |
|
catch err |
|
if isa(err, CompositeException) |
|
@test !isempty(err.exceptions) |
|
for excep in err.exceptions |
|
# Unpack the remote exception |
|
orig_err = excep.ex.captured.ex |
|
@test isa(orig_err, ArgumentError) |
|
end |
|
else |
|
@test isa(err, ArgumentError) |
|
end |
|
end |
|
try |
|
sum(DA, dims=0) |
|
catch err |
|
if isa(err, CompositeException) |
|
@test !isempty(err.exceptions) |
|
for excep in err.exceptions |
|
# Unpack the remote exception |
|
orig_err = excep.ex.captured.ex |
|
@test isa(orig_err, ArgumentError) |
|
end |
|
else |
|
@test isa(err, ArgumentError) |
|
end |
|
end |
hooks into internals of the exceptions which seems to have changed in Julia 1.3 causing an error, see https://gist.github.com/KristofferC/bd078abfa9434082d9100e799280107d#file-distributedarrays-log
DistributedArrays.jl/test/darray.jl
Lines 357 to 384 in 5aaed0b
hooks into internals of the exceptions which seems to have changed in Julia 1.3 causing an error, see https://gist.github.com/KristofferC/bd078abfa9434082d9100e799280107d#file-distributedarrays-log