Skip to content

Commit

Permalink
Closed temporary IOs when exiting capture_subprocess_io. (doudou)
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//src/minitest/dev/": change = 12502]
  • Loading branch information
zenspider committed Jan 12, 2020
1 parent cdfb5b9 commit 1c9ba0c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/minitest/assertions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,11 @@ def capture_subprocess_io
captured_stderr.unlink
$stdout.reopen orig_stdout
$stderr.reopen orig_stderr

orig_stdout.close
orig_stderr.close
captured_stdout.close
captured_stderr.close
end
end
end
Expand Down

0 comments on commit 1c9ba0c

Please sign in to comment.