Skip to content

Commit

Permalink
Use Test::Unit::AssertionFailedError instead of MiniTest::Assertion f…
Browse files Browse the repository at this point in the history
…or test-unit migration
  • Loading branch information
hsbt committed Sep 28, 2021
1 parent 0c96504 commit 3a609e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/zlib/test_zlib.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3a609e9

Please sign in to comment.