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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5477d297ec
commit
b343a583af
@ -1,14 +1,7 @@
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user