summaryrefslogtreecommitdiff
path: root/test/lib/minitest
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-27 15:49:13 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-27 15:49:13 +0000
commit9b612d382de382913d3eab12dac986fc5fc21864 (patch)
tree02415ac36a66f8bee02954d820dac33104775678 /test/lib/minitest
parent36276b6f40fe87aec2883a7641a249002a3bb7a9 (diff)
* test/lib/minitest/unit.rb: Use Tempfile#close! instead of
Tempfile#unlink to close file descriptors. * test/openssl/test_config.rb: Ditto. * test/ruby/test_io.rb: Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/lib/minitest')
-rw-r--r--test/lib/minitest/unit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/minitest/unit.rb b/test/lib/minitest/unit.rb
index 5847da7..bc6bf48 100644
--- a/test/lib/minitest/unit.rb
+++ b/test/lib/minitest/unit.rb
@@ -1063,7 +1063,7 @@ module MiniTest
list.each {|str|
puts "Leaked tempfile: #{name}: #{str}"
}
- tempfile_retained.each {|t| t.unlink }
+ tempfile_retained.each {|t| t.close! }
end
live2
end