ruby-changes:59971
From: aycabta <ko1@a...>
Date: Sun, 9 Feb 2020 20:22:43 +0900 (JST)
Subject: [ruby-changes:59971] ac0658e720 (master): [ruby/readline-ext] Check TestRelineAsReadline existance
https://git.ruby-lang.org/ruby.git/commit/?id=ac0658e720 From ac0658e72095a2e70f70635a0e2d8c908e54c41e Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Sun, 9 Feb 2020 16:41:07 +0900 Subject: [ruby/readline-ext] Check TestRelineAsReadline existance https://github.com/ruby/readline-ext/commit/c0a6303168 diff --git a/test/readline/test_readline.rb b/test/readline/test_readline.rb index 0c65d52..93cadbb 100644 --- a/test/readline/test_readline.rb +++ b/test/readline/test_readline.rb @@ -45,7 +45,7 @@ module BasetestReadline https://github.com/ruby/ruby/blob/trunk/test/readline/test_readline.rb#L45 # Work around lack of SecurityError in Reline # test mode with tainted prompt. # Also skip test on Ruby 2.7+, where $SAFE/taint is deprecated. - if RUBY_VERSION < '2.7' && !kind_of?(TestRelineAsReadline) + if RUBY_VERSION < '2.7' && defined?(TestRelineAsReadline) && !kind_of?(TestRelineAsReadline) begin Thread.start { $SAFE = 1 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/