ruby-changes:52154
From: normal <ko1@a...>
Date: Wed, 15 Aug 2018 08:00:04 +0900 (JST)
Subject: [ruby-changes:52154] normal:r64362 (trunk): Revert "test/lib/leakchecker.rb (find_tempfiles): don't warn for missing files"
normal 2018-08-15 07:59:57 +0900 (Wed, 15 Aug 2018) New Revision: 64362 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64362 Log: Revert "test/lib/leakchecker.rb (find_tempfiles): don't warn for missing files" This reverts commit 52102f6ff50eebf8c16667c9b49cef579d2057c1 (r64238). It is no longer necessary if we use Tempfile.create in WEBrick::HTTPAuth::Htgroup#flush (see next commit) Modified files: trunk/test/lib/leakchecker.rb Index: test/lib/leakchecker.rb =================================================================== --- test/lib/leakchecker.rb (revision 64361) +++ test/lib/leakchecker.rb (revision 64362) @@ -128,8 +128,7 @@ class LeakChecker https://github.com/ruby/ruby/blob/trunk/test/lib/leakchecker.rb#L128 [prev_count, []] else tempfiles = ObjectSpace.each_object(Tempfile).find_all {|t| - t.instance_variable_defined?(:@tmpfile) and t.path and - File.exist?(t.path) + t.instance_variable_defined?(:@tmpfile) and t.path } [count, tempfiles] end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/