1
0
Fork 0
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:
Kazuhiro NISHIYAMA 2022-01-05 09:04:15 +09:00
parent 13241b71a5
commit d5836db1b3
No known key found for this signature in database
GPG key ID: 262ED8DBB4222F7A

View file

@ -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