Skip to content

Commit 3a609e9

Browse files
committed
Use Test::Unit::AssertionFailedError instead of MiniTest::Assertion for test-unit migration
1 parent 0c96504 commit 3a609e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/zlib/test_zlib.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1319,7 +1319,7 @@ def test_adler32_combine
13191319
assert_equal(0x02820145, Zlib.adler32_combine(one, two, 1))
13201320
rescue NotImplementedError
13211321
skip "adler32_combine is not implemented"
1322-
rescue Minitest::Assertion
1322+
rescue Test::Unit::AssertionFailedError
13231323
if /aix/ =~ RUBY_PLATFORM
13241324
skip "zconf.h in zlib does not handle _LARGE_FILES in AIX. Skip until it is fixed"
13251325
end
@@ -1354,7 +1354,7 @@ def test_crc32_combine
13541354
assert_equal(0x8c736521, Zlib.crc32_combine(one, two, 1))
13551355
rescue NotImplementedError
13561356
skip "crc32_combine is not implemented"
1357-
rescue Minitest::Assertion
1357+
rescue Test::Unit::AssertionFailedError
13581358
if /aix/ =~ RUBY_PLATFORM
13591359
skip "zconf.h in zlib does not handle _LARGE_FILES in AIX. Skip until it is fixed"
13601360
end

0 commit comments

Comments
 (0)