mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
58c2571b59
commit
9c639efb66
1 changed files with 2 additions and 2 deletions
|
@ -316,10 +316,10 @@ EOT
|
||||||
enc = "\u{30a8 30f3 30b3 30fc 30c7 30a3 30f3 30b0}"
|
enc = "\u{30a8 30f3 30b3 30fc 30c7 30a3 30f3 30b0}"
|
||||||
pattern = /#{enc}/
|
pattern = /#{enc}/
|
||||||
assert_warning(pattern) {
|
assert_warning(pattern) {
|
||||||
open(IO::NULL, external_encoding: "us-ascii", encoding: enc)
|
open(IO::NULL, external_encoding: "us-ascii", encoding: enc) {}
|
||||||
}
|
}
|
||||||
assert_warning(pattern) {
|
assert_warning(pattern) {
|
||||||
open(IO::NULL, internal_encoding: "us-ascii", encoding: enc)
|
open(IO::NULL, internal_encoding: "us-ascii", encoding: enc) {}
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue