diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-27 15:49:13 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-27 15:49:13 +0000 |
commit | 9b612d382de382913d3eab12dac986fc5fc21864 (patch) | |
tree | 02415ac36a66f8bee02954d820dac33104775678 /test/lib/minitest/unit.rb | |
parent | 36276b6f40fe87aec2883a7641a249002a3bb7a9 (diff) | |
download | ruby-9b612d382de382913d3eab12dac986fc5fc21864.tar.gz |
* 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/unit.rb')
-rw-r--r-- | test/lib/minitest/unit.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/minitest/unit.rb b/test/lib/minitest/unit.rb index 5847da7d8c..bc6bf48ebf 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 |