summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-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