[前][次][番号順一覧][スレッド一覧]

ruby-changes:59289

From: aycabta <ko1@a...>
Date: Tue, 17 Dec 2019 13:47:18 +0900 (JST)
Subject: [ruby-changes:59289] 64ce658ec5 (master): Fix return condition according to the condition to skip

https://git.ruby-lang.org/ruby.git/commit/?id=64ce658ec5

From 64ce658ec5a6d6fc6eb969f607e703fd9372287a Mon Sep 17 00:00:00 2001
From: aycabta <aycabta@g...>
Date: Tue, 17 Dec 2019 13:30:54 +0900
Subject: Fix return condition according to the condition to skip


diff --git a/test/readline/test_readline.rb b/test/readline/test_readline.rb
index a343939..be9ac24 100644
--- a/test/readline/test_readline.rb
+++ b/test/readline/test_readline.rb
@@ -631,7 +631,7 @@ module BasetestReadline https://github.com/ruby/ruby/blob/trunk/test/readline/test_readline.rb#L631
     assert_equal('abcde!', line)
   ensure
     return if /EditLine/n.match(Readline::VERSION)
-    return if defined?(Reline) and Readline == Reline
+    return unless Readline.respond_to?(:completion_append_character=)
     Readline.completion_append_character = append_character
   end
 
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]