diff options
author | yui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-06-20 12:40:59 +0000 |
---|---|---|
committer | yui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-06-20 12:40:59 +0000 |
commit | 248e076e5eb83514695dca558e8d1018f23fd3bf (patch) | |
tree | 660652437743bbd74b2737350f93c2cde898b176 | |
parent | 158f223586a6eb6ed652f1e81b39ae914d52d16d (diff) | |
download | ruby-248e076e5eb83514695dca558e8d1018f23fd3bf.tar.gz |
test_ast.rb: Remove a needless line
`RubyVM::AST.parse_file` was fixed to raise `SyntaxError`
by r63602. So this line is needless.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | test/ruby/test_ast.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/ruby/test_ast.rb b/test/ruby/test_ast.rb index b2926eb5be..cbc3231dd3 100644 --- a/test/ruby/test_ast.rb +++ b/test/ruby/test_ast.rb @@ -63,9 +63,7 @@ class TestAst < Test::Unit::TestCase def ast return @ast if defined?(@ast) - ast = RubyVM::AST.parse_file(@path) - raise "Syntax error: #{@path}" if ast.nil? - @ast = ast + @ast = RubyVM::AST.parse_file(@path) end private |