1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Skip test_sync when there is no tty or something.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2011-06-14 15:49:12 +00:00
parent 7d6fe4e604
commit 179ab89278

View file

@ -149,6 +149,7 @@ class TestIO_Console < Test::Unit::TestCase
end end
def test_sync def test_sync
skip "Can't get console (because of there is no tty?)" unless IO.console
assert(helper {IO.console.sync}, "console should be unbuffered") assert(helper {IO.console.sync}, "console should be unbuffered")
end end