summaryrefslogtreecommitdiff
path: root/test/lib/leakchecker.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/leakchecker.rb')
-rw-r--r--test/lib/leakchecker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/leakchecker.rb b/test/lib/leakchecker.rb
index 24f19de..74244b3 100644
--- a/test/lib/leakchecker.rb
+++ b/test/lib/leakchecker.rb
@@ -117,7 +117,7 @@ class LeakChecker
end
def check_tempfile_leak(test_name)
- return false, @tempfile_info unless defined? Tempfile
+ return false unless defined? Tempfile
count1, initial_tempfiles = @tempfile_info
count2, current_tempfiles = find_tempfiles(count1)
leaked = false