File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 349349
350350check_leaks ()
351351
352+ unpack (ex:: Base.CapturedException ) = unpack (ex. ex)
353+ unpack (ex:: Distributed.RemoteException ) = unpack (ex. captured)
354+ if VERSION >= v " 1.3.0-alpha.110"
355+ unpack (ex:: Base.TaskFailedException ) = unpack (ex. task. exception)
356+ end
357+ unpack (ex) = ex
358+
352359@testset " test sum on DArrays" begin
353360 A = randn (100 ,100 )
354361 DA = distribute (A)
@@ -361,7 +368,7 @@ check_leaks()
361368 @test ! isempty (err. exceptions)
362369 for excep in err. exceptions
363370 # Unpack the remote exception
364- orig_err = excep. ex . captured . ex
371+ orig_err = unpack ( excep)
365372 @test isa (orig_err, ArgumentError)
366373 end
367374 else
@@ -375,7 +382,7 @@ check_leaks()
375382 @test ! isempty (err. exceptions)
376383 for excep in err. exceptions
377384 # Unpack the remote exception
378- orig_err = excep. ex . captured . ex
385+ orig_err = unpack ( excep)
379386 @test isa (orig_err, ArgumentError)
380387 end
381388 else
You can’t perform that action at this time.
0 commit comments