This is a back-port of rails/rails#6525. See the commit notes there for
Exceptions like Interrupt should not be rescued in tests.
Why the code is different to #6525? I think that we should not use MiniTest::Unit::TestCase::PASSTHROUGH_EXCEPTIONS
I was trying to make the code as similar as possible to that which was already there. In ForClassicTestUnit this is the style that is used. In master this module no longer exists. I'm happy to change this pull request to match master if you prefer.
Ok. Thank you for the explanation. I'll merge it now.
Also 3-2-stable and 3-1-stable still support 1.8.7 so it should also fix the problem for Test::Unit
I think it is fixed as @floehopper pointed in their last comment.
Yep, just spotted that - thanks.