Skip to content

Commit

Permalink
Remove require 'io/wait' where it's no longer necessary. (#6932)
Browse files Browse the repository at this point in the history
* Remove `require 'io/wait'` as it's part of core now.

* Update ruby specs using version gates.

* Add note about why it's conditional.
  • Loading branch information
ioquatix authored and hsbt committed Dec 16, 2022
1 parent ea21646 commit 7a39ebf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
7 changes: 3 additions & 4 deletions test/io/wait/test_io_wait.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
require 'test/unit'
require 'timeout'
require 'socket'
begin
require 'io/wait'
rescue LoadError
end

# For `IO#ready?` and `IO#nread`:
require 'io/wait'

class TestIOWait < Test::Unit::TestCase

Expand Down
1 change: 0 additions & 1 deletion test/io/wait/test_io_wait_uncommon.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# frozen_string_literal: true
require 'test/unit'
require 'io/wait'

# test uncommon device types to check portability problems
# We may optimize IO#wait_*able for non-Linux kernels in the future
Expand Down
1 change: 0 additions & 1 deletion test/io/wait/test_ractor.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# frozen_string_literal: true
require 'test/unit'
require 'rbconfig'
require 'io/wait'

class TestIOWaitInRactor < Test::Unit::TestCase
def test_ractor
Expand Down

0 comments on commit 7a39ebf

Please sign in to comment.