mirror of
https://github.com/ruby/ruby.git
synced 2025-09-23 04:24:04 +02:00
Check the existence of the test classes
This commit is contained in:
parent
5ca0a51ffd
commit
17ef7a98ef
Notes:
git
2021-08-04 18:30:13 +09:00
1 changed files with 2 additions and 2 deletions
|
@ -481,9 +481,9 @@ module BasetestReadline
|
||||||
require 'readline'
|
require 'readline'
|
||||||
require 'test/readline/helper'
|
require 'test/readline/helper'
|
||||||
#{
|
#{
|
||||||
if self.class == TestReadline
|
if defined?(TestReadline) && self.class == TestReadline
|
||||||
"use_ext_readline"
|
"use_ext_readline"
|
||||||
elsif self.class == TestRelineAsReadline
|
elsif defined?(TestRelineAsReadline) && self.class == TestRelineAsReadline
|
||||||
"use_lib_reline"
|
"use_lib_reline"
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue