File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 349
349
350
350
check_leaks ()
351
351
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
+
352
359
@testset " test sum on DArrays" begin
353
360
A = randn (100 ,100 )
354
361
DA = distribute (A)
@@ -361,7 +368,7 @@ check_leaks()
361
368
@test ! isempty (err. exceptions)
362
369
for excep in err. exceptions
363
370
# Unpack the remote exception
364
- orig_err = excep. ex . captured . ex
371
+ orig_err = unpack ( excep)
365
372
@test isa (orig_err, ArgumentError)
366
373
end
367
374
else
@@ -375,7 +382,7 @@ check_leaks()
375
382
@test ! isempty (err. exceptions)
376
383
for excep in err. exceptions
377
384
# Unpack the remote exception
378
- orig_err = excep. ex . captured . ex
385
+ orig_err = unpack ( excep)
379
386
@test isa (orig_err, ArgumentError)
380
387
end
381
388
else
You can’t perform that action at this time.
0 commit comments