diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-20 04:37:26 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-20 04:37:26 +0000 |
commit | cccb946489689f7e63048ef9c8eeb8eee2e7e1fc (patch) | |
tree | f57733bc5732b9f38c6e93cb41cfcd7c237ff382 /test/lib | |
parent | 7eddca0de022a7d7dab79875f17288e5dd6798ad (diff) | |
download | ruby-cccb946489689f7e63048ef9c8eeb8eee2e7e1fc.tar.gz |
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/trunk@54653 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 e2bea19c00..fd51012fb5 100644 --- a/test/lib/test/unit/assertions.rb +++ b/test/lib/test/unit/assertions.rb @@ -495,6 +495,7 @@ EOT catch {|tag| eval(code, binding, fname, line)} end assert_match(error, e.message, mesg) + e ensure $VERBOSE = verbose end |