ruby-changes:42579
From: nobu <ko1@a...>
Date: Wed, 20 Apr 2016 12:40:54 +0900 (JST)
Subject: [ruby-changes:42579] nobu:r54653 (trunk): assertions.rb: return the exception
nobu 2016-04-20 13:37:26 +0900 (Wed, 20 Apr 2016) New Revision: 54653 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54653 Log: assertions.rb: return the exception * test/lib/test/unit/assertions.rb (assert_syntax_error): return the rescued exception object as well as assert_raise. Modified files: trunk/test/lib/test/unit/assertions.rb Index: test/lib/test/unit/assertions.rb =================================================================== --- test/lib/test/unit/assertions.rb (revision 54652) +++ test/lib/test/unit/assertions.rb (revision 54653) @@ -495,6 +495,7 @@ EOT https://github.com/ruby/ruby/blob/trunk/test/lib/test/unit/assertions.rb#L495 catch {|tag| eval(code, binding, fname, line)} end assert_match(error, e.message, mesg) + e ensure $VERBOSE = verbose end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/