[前][次][番号順一覧][スレッド一覧]

ruby-changes:51494

From: yui-knk <ko1@a...>
Date: Wed, 20 Jun 2018 21:41:07 +0900 (JST)
Subject: [ruby-changes:51494] yui-knk:r63704 (trunk): test_ast.rb: Remove a needless line

yui-knk	2018-06-20 21:40:59 +0900 (Wed, 20 Jun 2018)

  New Revision: 63704

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63704

  Log:
    test_ast.rb: Remove a needless line
    
    `RubyVM::AST.parse_file` was fixed to raise `SyntaxError`
    by r63602. So this line is needless.

  Modified files:
    trunk/test/ruby/test_ast.rb
Index: test/ruby/test_ast.rb
===================================================================
--- test/ruby/test_ast.rb	(revision 63703)
+++ test/ruby/test_ast.rb	(revision 63704)
@@ -63,9 +63,7 @@ class TestAst < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_ast.rb#L63
 
     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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]