summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/io/console/test_io_console.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb
index ba9063e1b33..67d58fdebeb 100644
--- a/test/io/console/test_io_console.rb
+++ b/test/io/console/test_io_console.rb
@@ -181,6 +181,7 @@ class TestIO_Console < Test::Unit::TestCase
end
def test_getpass
+ skip unless /\bIO\#getpass\b/ =~ ENV["RUBY_TESTS"]
skip unless IO.method_defined?("getpass")
run_pty("p IO.console.getpass('> ')") do |r, w|
assert_equal("> ", r.readpartial(10))