summaryrefslogtreecommitdiff
path: root/test/lib/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-23 14:47:31 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-23 14:47:31 +0000
commit8284de591f076a1b7d099cacfecf8a9b4fe5df90 (patch)
tree5eb77d935a0c05e006ec6dc7a001cd7b2f817f85 /test/lib/test
parent0ae219f0e1c6661a5dcb9e548d7dafcd27bce09c (diff)
assert_syntax_error returns the exception [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/lib/test')
-rw-r--r--test/lib/test/unit/assertions.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/lib/test/unit/assertions.rb b/test/lib/test/unit/assertions.rb
index 56f6ae5337..94248d1139 100644
--- a/test/lib/test/unit/assertions.rb
+++ b/test/lib/test/unit/assertions.rb
@@ -513,6 +513,7 @@ EOT
RubyVM::InstructionSequence.compile(src, fname, fname, line)
end
assert_match(error, e.message, mesg)
+ e
end
end