From 8750bf52a22ffed4bfd64e3a4cfdec2282c3a09a Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 11 Jan 2022 21:41:25 +0900 Subject: [PATCH 1/2] Use omit instead of skip for test-unit --- test/io/wait/test_io_wait_uncommon.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/io/wait/test_io_wait_uncommon.rb b/test/io/wait/test_io_wait_uncommon.rb index 75cd335..7b92e4c 100644 --- a/test/io/wait/test_io_wait_uncommon.rb +++ b/test/io/wait/test_io_wait_uncommon.rb @@ -13,7 +13,7 @@ def test_tty_wait end def test_fifo_wait - skip 'no mkfifo' unless File.respond_to?(:mkfifo) && IO.const_defined?(:NONBLOCK) + omit 'no mkfifo' unless File.respond_to?(:mkfifo) && IO.const_defined?(:NONBLOCK) require 'tmpdir' Dir.mktmpdir('rubytest-fifo') do |dir| fifo = "#{dir}/fifo" From 178312358a4785af8460d0b51e84bde7447ff6bf Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 11 Jan 2022 21:41:51 +0900 Subject: [PATCH 2/2] Removed needless alias --- test/lib/helper.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/test/lib/helper.rb b/test/lib/helper.rb index 31bd5c3..909f8f9 100644 --- a/test/lib/helper.rb +++ b/test/lib/helper.rb @@ -1,8 +1,4 @@ require "test/unit" require_relative "core_assertions" -class Test::Unit::TestCase - alias skip pend -end - Test::Unit::TestCase.include Test::Unit::CoreAssertions