From 3a609e9ea94f15afed13865c93a06311b858a3ef Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Mon, 6 Sep 2021 18:34:15 +0900 Subject: [PATCH] Use Test::Unit::AssertionFailedError instead of MiniTest::Assertion for test-unit migration --- test/zlib/test_zlib.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/zlib/test_zlib.rb b/test/zlib/test_zlib.rb index 4780bc0..a629c0c 100644 --- a/test/zlib/test_zlib.rb +++ b/test/zlib/test_zlib.rb @@ -1319,7 +1319,7 @@ def test_adler32_combine assert_equal(0x02820145, Zlib.adler32_combine(one, two, 1)) rescue NotImplementedError skip "adler32_combine is not implemented" - rescue Minitest::Assertion + rescue Test::Unit::AssertionFailedError if /aix/ =~ RUBY_PLATFORM skip "zconf.h in zlib does not handle _LARGE_FILES in AIX. Skip until it is fixed" end @@ -1354,7 +1354,7 @@ def test_crc32_combine assert_equal(0x8c736521, Zlib.crc32_combine(one, two, 1)) rescue NotImplementedError skip "crc32_combine is not implemented" - rescue Minitest::Assertion + rescue Test::Unit::AssertionFailedError if /aix/ =~ RUBY_PLATFORM skip "zconf.h in zlib does not handle _LARGE_FILES in AIX. Skip until it is fixed" end