mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/io/console/test_io_console.rb (TestIO_Console#run_pty): no block given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
fb933bf70b
commit
c10d7640b2
1 changed files with 5 additions and 1 deletions
|
@ -256,7 +256,11 @@ class TestIO_Console < Test::Unit::TestCase
|
|||
else
|
||||
result = r.readlines(&:chomp)
|
||||
Process.wait(pid)
|
||||
yield result
|
||||
if block_given?
|
||||
yield result
|
||||
else
|
||||
result
|
||||
end
|
||||
ensure
|
||||
r.close if r
|
||||
w.close if w
|
||||
|
|
Loading…
Reference in a new issue