summaryrefslogtreecommitdiff
path: root/test/readline
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2020-02-09 16:41:07 +0900
committeraycabta <aycabta@gmail.com>2020-02-09 20:22:12 +0900
commitac0658e72095a2e70f70635a0e2d8c908e54c41e (patch)
tree30321c056fa723e0aaa139bff872a0094dfbfa86 /test/readline
parent05711adfb4eb30975860749225ddee3484336654 (diff)
[ruby/readline-ext] Check TestRelineAsReadline existance
https://github.com/ruby/readline-ext/commit/c0a6303168
Diffstat (limited to 'test/readline')
-rw-r--r--test/readline/test_readline.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/readline/test_readline.rb b/test/readline/test_readline.rb
index 0c65d52087..93cadbb930 100644
--- a/test/readline/test_readline.rb
+++ b/test/readline/test_readline.rb
@@ -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