Use Test::Unit::AssertionFailedError instead of MiniTest::Assertion for test-unit migration

This commit is contained in:
Hiroshi SHIBATA 2021-09-06 18:34:15 +09:00
parent 8baac078bc
commit 940a19e4b3
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2
6 changed files with 7 additions and 7 deletions

View file

@ -577,7 +577,7 @@ end.join
end
end;
end
rescue Minitest::Assertion
rescue Test::Unit::AssertionFailedError
# Possibly compiled with -DRUBY_DEBUG, in which
# case rb_bug is used instead of NoMemoryError,
# and we cannot test ensure after NoMemoryError.