ruby-changes:52290
From: eregon <ko1@a...>
Date: Wed, 22 Aug 2018 05:28:35 +0900 (JST)
Subject: [ruby-changes:52290] eregon:r64498 (trunk): Revert r64483
eregon 2018-08-22 05:28:29 +0900 (Wed, 22 Aug 2018) New Revision: 64498 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64498 Log: Revert r64483 * This reverts commit 12f624b673fd1bd1782f4c52e3b6c78d033e7b84: "Try 4 times for WIN32OLE specs" * It was a machine problem, it needed to be rebooted. 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 64497) +++ spec/ruby/library/win32ole/fixtures/classes.rb (revision 64498) @@ -1,15 +1,14 @@ https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/win32ole/fixtures/classes.rb#L1 module WIN32OLESpecs def self.new_ole(name) - retries_left = 3 + retried = false begin WIN32OLE.new(name) rescue WIN32OLERuntimeError => e - if retries_left > 0 - retries_left -= 1 + unless retried + retried = true retry - else - raise e end + raise e end end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/