summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-29 13:26:02 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-29 13:26:02 +0000
commitb519ce9a8a0ae6b74e452a51bec2400a9bf5fcd4 (patch)
treef6481da45d19025cfbc76f8493a26814625c3ed1 /test
parent2edc9ea5f8746a02ea55859e286096485200678f (diff)
* test/lib/minitest/unit.rb (capture_subprocess_io): Close fds.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-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 bc6bf48ebf..e880d3654b 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