mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix Leaked file descriptor: TestIO_Console#test_console_kw
``` Leaked file descriptor: TestIO_Console#test_console_kw: 10 : #<File:/dev/tty> ```
This commit is contained in:
parent
13241b71a5
commit
d5836db1b3
1 changed files with 3 additions and 1 deletions
|
@ -488,7 +488,9 @@ defined?(IO.console) and TestIO_Console.class_eval do
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_console_kw
|
def test_console_kw
|
||||||
assert_kind_of(IO, IO.console(:clone, freeze: true))
|
io = IO.console(:clone, freeze: true)
|
||||||
|
io.close
|
||||||
|
assert_kind_of(IO, io)
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_sync
|
def test_sync
|
||||||
|
|
Loading…
Add table
Reference in a new issue