On Sep 3, 2006, at 12:59 PM, Yukihiro Matsumoto wrote:
> In message "Re: test/unit doesn't rescue a
Exception"
> on Mon, 4 Sep 2006 04:10:35 +0900, Eric Hodel
> <drbrain segment7.net> writes:
>
> |> - rescue StandardError, ScriptError
> |> + rescue Exception
> |> + raise if [NoMemoryError,
SignalException, Interrupt,
> |> SystemExit].include? $!.class
> |> add_error($!)
> |> ensure
> |> begin
> |
> |I think the same code should be added to the teardown
rescue.
>
> Eric, can you commit? Or should we wait for Nathaniel?
If Nathaniel doesn't approve/commit by Wednesday I will
complete the
patch and commit. It is a holiday weekend (Labor Day) here
so he
might be away from the internet.
--
Eric Hodel - drbrain segment7.net - http://blog.segment7.net
This implementation is HODEL-HASH-9600 compliant
http://trackmap.robotco
op.com
|