Skip to content

Commit

Permalink
test_readline.rb only needs EnvUtil
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Feb 22, 2023
1 parent d923777 commit 9937cc3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions test/readline/helper.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
begin
# for standalone test suite on ruby/logger
require 'test/unit'
require_relative '../lib/core_assertions'
Test::Unit::TestCase.include Test::Unit::CoreAssertions
require_relative '../lib/envutil'
rescue LoadError
end

Expand Down
2 changes: 0 additions & 2 deletions test/readline/test_readline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,6 @@ def test_refresh_line

# TODO Green CI for arm32-linux (Travis CI), and Readline 7.0.
def test_interrupt_in_other_thread
omit "Skip macOS platform" if RUBY_PLATFORM =~ /darwin/
# Editline and Readline 7.0 can't treat I/O that is not tty.
omit "Skip Editline" if /EditLine/n.match(Readline::VERSION)
omit "Skip Readline 7.0" if Readline::VERSION == "7.0"
Expand Down Expand Up @@ -837,7 +836,6 @@ def test_completion_quote_character_after_completion
end

def test_without_tty
omit "Skip macOS platform" if RUBY_PLATFORM =~ /darwin/
omit "Skip Editline" if /EditLine/n.match(Readline::VERSION)
loader = nil
if defined?(TestReadline) && self.class == TestReadline
Expand Down

0 comments on commit 9937cc3

Please sign in to comment.