diff --git a/test/util.jl b/test/util.jl index 15654f2f4..0bb9a9f5e 100644 --- a/test/util.jl +++ b/test/util.jl @@ -36,7 +36,7 @@ function _test_throws_unwrap(terr, ex; to_match=[]) end quote $oerr, $rerr = try - $(esc(ex)) + nothing, $(esc(ex)) catch err (err, Dagger.Sch.unwrap_nested_exception(err)) end