summaryrefslogtreecommitdiff
path: root/test/lib
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/leakchecker.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/lib/leakchecker.rb b/test/lib/leakchecker.rb
index d37f865883..af9200bf77 100644
--- a/test/lib/leakchecker.rb
+++ b/test/lib/leakchecker.rb
@@ -128,8 +128,7 @@ class LeakChecker
[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