summaryrefslogtreecommitdiff
path: root/test/io/console
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-14 01:29:23 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-14 01:29:23 +0000
commit65dd1434b3c5c61ec1347b04dd809b5f755bc95d (patch)
tree65180add6247af1bc955b20df7862451a8ef1b52 /test/io/console
parente4c79d0d10429ac7d48641a66091f0292d807a9d (diff)
Suppress uninitialized instance variable warnings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/io/console')
-rw-r--r--test/io/console/test_io_console.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb
index 9ad07bce8b..db3814d51c 100644
--- a/test/io/console/test_io_console.rb
+++ b/test/io/console/test_io_console.rb
@@ -14,7 +14,7 @@ class TestIO_Console < Test::Unit::TestCase
end
def set_winsize_teardown
- trap(:TTOU, @old_ttou) if @old_ttou
+ trap(:TTOU, @old_ttou) if defined?(@old_ttou) and @old_ttou
end
end