ruby-changes:53186
From: suke <ko1@a...>
Date: Sun, 28 Oct 2018 10:08:46 +0900 (JST)
Subject: [ruby-changes:53186] suke:r65401 (trunk): remove rescue block when win32ole is required
suke 2018-10-28 10:08:42 +0900 (Sun, 28 Oct 2018) New Revision: 65401 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65401 Log: remove rescue block when win32ole is required * spec/ruby/library/win32ole/fixtures/classes.rb: remove rescue block because this file is required on Windows only. Modified files: trunk/spec/ruby/library/win32ole/fixtures/classes.rb Index: spec/ruby/library/win32ole/fixtures/classes.rb =================================================================== --- spec/ruby/library/win32ole/fixtures/classes.rb (revision 65400) +++ spec/ruby/library/win32ole/fixtures/classes.rb (revision 65401) @@ -1,14 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/win32ole/fixtures/classes.rb#L1 -begin - require 'win32ole' -rescue LoadError -end +require 'win32ole' module WIN32OLESpecs - begin - MSXML_AVAILABLE = !!WIN32OLE_TYPELIB.typelibs.find { |t| t.name.start_with?('Microsoft XML') } - rescue - MSXML_AVAILABLE = false - end + MSXML_AVAILABLE = !!WIN32OLE_TYPELIB.typelibs.find { |t| t.name.start_with?('Microsoft XML') } def self.new_ole(name) tries = 0 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/