Skip to content

Commit

Permalink
Merge pull request #2044 from ruby/omit-non-pty-platform
Browse files Browse the repository at this point in the history
Omit IOConsoleTest with Windows platform
  • Loading branch information
soutaro authored Oct 3, 2024
2 parents 1e16fcd + a1522c1 commit 8473835
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/stdlib/IO_console_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require_relative "test_helper"
require "io/console"
require "io/console/size"
require 'pty'

class IOConsoleSingletonTest < Test::Unit::TestCase
include TestHelper
Expand Down Expand Up @@ -34,8 +33,9 @@ class IOConsoleTest < Test::Unit::TestCase
testing "::IO"

private def helper
require 'pty'
m, s = PTY.open
rescue RuntimeError
rescue RuntimeError, LoadError
omit $!
else
yield m, s
Expand Down

0 comments on commit 8473835

Please sign in to comment.