ruby-changes:58954
From: Nobuyoshi <ko1@a...>
Date: Fri, 29 Nov 2019 11:49:43 +0900 (JST)
Subject: [ruby-changes:58954] 5ad32d5504 (master): `LoadError` is not a subclass of `StandardError`
https://git.ruby-lang.org/ruby.git/commit/?id=5ad32d5504 From 5ad32d5504499f1a915d5d30e59dfd98da6759c6 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Fri, 29 Nov 2019 11:25:23 +0900 Subject: `LoadError` is not a subclass of `StandardError` diff --git a/test/optparse/test_did_you_mean.rb b/test/optparse/test_did_you_mean.rb index 57fa1e9..7630625 100644 --- a/test/optparse/test_did_you_mean.rb +++ b/test/optparse/test_did_you_mean.rb @@ -1,6 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/test/optparse/test_did_you_mean.rb#L1 # frozen_string_literal: false require_relative 'test_optparse' -require "did_you_mean" rescue return +begin + require "did_you_mean" +rescue LoadError + return +end class TestOptionParser::DidYouMean < TestOptionParser def setup -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/