ruby-changes:67965
From: Hiroshi <ko1@a...>
Date: Mon, 13 Sep 2021 09:37:55 +0900 (JST)
Subject: [ruby-changes:67965] ec6b444fbf (master): Fixed leaked file descriptor
https://git.ruby-lang.org/ruby.git/commit/?id=ec6b444fbf From ec6b444fbf975421150b3ff3a2c50bcc53aaf854 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Mon, 13 Sep 2021 09:36:42 +0900 Subject: Fixed leaked file descriptor Leaked file descriptor: TestRDocGeneratorDarkfish#test_template_stylesheets: 11 : #<File:./tmp20210913-30865-7c4ey8/hoge20210913-30865-evm2uo.css> --- test/rdoc/test_rdoc_generator_darkfish.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/rdoc/test_rdoc_generator_darkfish.rb b/test/rdoc/test_rdoc_generator_darkfish.rb index 15aba0b..b78a3fb 100644 --- a/test/rdoc/test_rdoc_generator_darkfish.rb +++ b/test/rdoc/test_rdoc_generator_darkfish.rb @@ -214,6 +214,7 @@ class TestRDocGeneratorDarkfish < RDoc::TestCase https://github.com/ruby/ruby/blob/trunk/test/rdoc/test_rdoc_generator_darkfish.rb#L214 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) -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/