diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-05-13 22:09:08 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-05-13 22:09:08 +0000 |
commit | ccbdebf5a97ae0e7433f09d61f65f05e58877ba8 (patch) | |
tree | ca69cf10d1d996fcd38b98d6517b9db3d3560c78 /test/ruby/test_io_m17n.rb | |
parent | 308be9c8a18923e0521170649f33793609da2174 (diff) | |
download | ruby-ccbdebf5a97ae0e7433f09d61f65f05e58877ba8.tar.gz |
* test/ruby/test_io_m17n.rb (test_textmode_paragraph_binaryread):
use opened pipes by with_pipe.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_io_m17n.rb')
-rw-r--r-- | test/ruby/test_io_m17n.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/test/ruby/test_io_m17n.rb b/test/ruby/test_io_m17n.rb index 1016eaa4d2..7bdd8e9b0f 100644 --- a/test/ruby/test_io_m17n.rb +++ b/test/ruby/test_io_m17n.rb @@ -1794,10 +1794,8 @@ EOT def test_textmode_paragraph_binaryread with_pipe("US-ASCII:UTF-8", :universal_newline => true) do |r, w| - r, w = IO.pipe w << "a\n\n\ncdefgh".gsub(/\n/, "\r\n") w.close - r.set_encoding("US-ASCII:UTF-8", :universal_newline => true) assert_equal("a\n\n", r.gets("")) assert_equal("c", r.getc) assert_equal("defgh", r.readpartial(10)) |