diff options
author | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-20 19:21:27 +0000 |
---|---|---|
committer | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-20 19:21:27 +0000 |
commit | 6b34f723c5e923e59111282367f1471ef7d20a25 (patch) | |
tree | ef732b3407acce16609dcdb55c5d3e5acd87c332 /test/lib | |
parent | e824b05b3e0c01905d38af7d9c669ddc55cfcfb3 (diff) |
merge revision(s) 54653:
assertions.rb: return the exception
* test/lib/test/unit/assertions.rb (assert_syntax_error): return
the rescued exception object as well as assert_raise.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@54656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/lib')
-rw-r--r-- | test/lib/test/unit/assertions.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/lib/test/unit/assertions.rb b/test/lib/test/unit/assertions.rb index 8eb805744e..4396503447 100644 --- a/test/lib/test/unit/assertions.rb +++ b/test/lib/test/unit/assertions.rb @@ -490,6 +490,7 @@ EOT catch {|tag| eval(code, binding, fname, line)} end assert_match(error, e.message, mesg) + e ensure $VERBOSE = verbose end |