From 2866f4a26bbf6567abaea8fb169b98531bb39a1c Mon Sep 17 00:00:00 2001 From: Mark Kittisopikul Date: Mon, 3 Jun 2024 01:24:36 -0400 Subject: [PATCH] Change use of `@assert` to explicitly throwing an AssertionError --- test/api.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/api.jl b/test/api.jl index 765a27b9..174df3e3 100644 --- a/test/api.jl +++ b/test/api.jl @@ -41,7 +41,7 @@ using HDF5, Test @test_throws AssertionError HDF5.API.h5a_iterate( f, HDF5.API.H5_INDEX_NAME, HDF5.API.H5_ITER_INC ) do loc, name, info - @assert false + throw(AssertionError("False is not true")) end # HDF5 error @@ -100,7 +100,7 @@ end @test_throws AssertionError HDF5.API.h5l_iterate( f, HDF5.API.H5_INDEX_NAME, HDF5.API.H5_ITER_INC ) do loc, name, info - @assert false + throw(AssertionError("False is not true")) end end