mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_io_console.rb: chomp results
* test/io/console/test_io_console.rb (run_pty): IO#readlines ignores the given block. need map to chomp the results. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f5f6218a23
commit
d33a3837cb
1 changed files with 1 additions and 1 deletions
|
@ -254,7 +254,7 @@ class TestIO_Console < Test::Unit::TestCase
|
|||
rescue RuntimeError
|
||||
skip $!
|
||||
else
|
||||
result = r.readlines(&:chomp)
|
||||
result = r.readlines.map(&:chomp)
|
||||
Process.wait(pid)
|
||||
if block_given?
|
||||
yield result
|
||||
|
|
Loading…
Add table
Reference in a new issue