diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-28 08:27:53 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-28 08:27:53 +0000 |
commit | 9c639efb6665b15d4b70bed4d15226e4776b1580 (patch) | |
tree | adf8f9aeb3399b1f51ce8dcaefc8e0bab011c324 /test/ruby/test_io_m17n.rb | |
parent | 58c2571b597b278e93362f86983b18f7d8c19ad2 (diff) |
test_io_m17n.rb: leaked FDs
* test/ruby/test_io_m17n.rb (test_ignored_encoding_option): fix
leaked file descriptors by r47305.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_io_m17n.rb')
-rw-r--r-- | test/ruby/test_io_m17n.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_io_m17n.rb b/test/ruby/test_io_m17n.rb index 7f54762ebe..de64a78f83 100644 --- a/test/ruby/test_io_m17n.rb +++ b/test/ruby/test_io_m17n.rb @@ -316,10 +316,10 @@ EOT enc = "\u{30a8 30f3 30b3 30fc 30c7 30a3 30f3 30b0}" pattern = /#{enc}/ assert_warning(pattern) { - open(IO::NULL, external_encoding: "us-ascii", encoding: enc) + open(IO::NULL, external_encoding: "us-ascii", encoding: enc) {} } assert_warning(pattern) { - open(IO::NULL, internal_encoding: "us-ascii", encoding: enc) + open(IO::NULL, internal_encoding: "us-ascii", encoding: enc) {} } end |