diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-12-25 03:51:27 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-12-25 03:51:27 +0000 |
commit | d33a3837cb467f1c23286a4daf40baa3956020e6 (patch) | |
tree | 6f7bbb5695d1ab906ce5ab1132045622df16a759 /test/io | |
parent | f5f6218a23fdbe45d1a80c202a131f02c3eef0ce (diff) | |
download | ruby-d33a3837cb467f1c23286a4daf40baa3956020e6.tar.gz |
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
Diffstat (limited to 'test/io')
-rw-r--r-- | test/io/console/test_io_console.rb | 2 |
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 1c0b0b5654..b8a1cf95b5 100644 --- a/test/io/console/test_io_console.rb +++ b/test/io/console/test_io_console.rb @@ -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 |