Skip to content

Tests fails on master because of change to Exception internals #211

Closed
@andreasnoack

Description

@andreasnoack

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions