summaryrefslogtreecommitdiff
path: root/test/lib/minitest/unit.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/minitest/unit.rb')
-rw-r--r--test/lib/minitest/unit.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/lib/minitest/unit.rb b/test/lib/minitest/unit.rb
index bc6bf48ebf9..e880d3654b8 100644
--- a/test/lib/minitest/unit.rb
+++ b/test/lib/minitest/unit.rb
@@ -524,6 +524,8 @@ module MiniTest
ensure
$stdout.reopen orig_stdout
$stderr.reopen orig_stderr
+ orig_stdout.close
+ orig_stderr.close
captured_stdout.close!
captured_stderr.close!
end