зеркало из https://github.com/github/ruby.git
[ruby/readline-ext] Check TestRelineAsReadline existance
https://github.com/ruby/readline-ext/commit/c0a6303168
This commit is contained in:
Родитель
05711adfb4
Коммит
ac0658e720
|
@ -45,7 +45,7 @@ module BasetestReadline
|
|||
# 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
|
||||
|
|
Загрузка…
Ссылка в новой задаче