add ensure to restore $stdout correctly.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2019-04-21 03:46:25 +00:00
Родитель d0e50b7d5b
Коммит 2a5ea43507
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -1095,6 +1095,7 @@ class Reline::KeyActor::Emacs::Test < Reline::TestCase
assert_cursor(6)
assert_cursor_max(6)
assert_line('foo_ba')
ensure
$stdout = STDOUT
end