mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fixed leaked file descriptor
Leaked file descriptor: TestRDocGeneratorDarkfish#test_template_stylesheets: 11 : #<File:./tmp20210913-30865-7c4ey8/hoge20210913-30865-evm2uo.css>
This commit is contained in:
parent
8de53fb31c
commit
ec6b444fbf
1 changed files with 1 additions and 0 deletions
|
@ -214,6 +214,7 @@ class TestRDocGeneratorDarkfish < RDoc::TestCase
|
|||
def test_template_stylesheets
|
||||
css = Tempfile.create(%W'hoge .css', Dir.mktmpdir('tmp', '.'))
|
||||
File.write(css, '')
|
||||
css.close
|
||||
base = File.basename(css)
|
||||
refute_file(base)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue