class Minitest::Test

def neuter_exception e # :nodoc:

:nodoc:
def neuter_exception e # :nodoc:
  bt = e.backtrace
  msg = e.message.dup
  new_exception e.class, msg, bt            # e.class can be a problem...
rescue
  msg.prepend "Neutered Exception #{e.class}: "
  new_exception RuntimeError, msg, bt, true # but if this raises, we die
end