From 248e076e5eb83514695dca558e8d1018f23fd3bf Mon Sep 17 00:00:00 2001 From: yui-knk Date: Wed, 20 Jun 2018 12:40:59 +0000 Subject: 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 --- test/ruby/test_ast.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test') 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 -- cgit v1.2.3