diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/lib/minitest/unit.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lib/minitest/unit.rb b/test/lib/minitest/unit.rb index 444e56e634..54f34d55f7 100644 --- a/test/lib/minitest/unit.rb +++ b/test/lib/minitest/unit.rb @@ -522,10 +522,10 @@ module MiniTest [captured_stdout.read, captured_stderr.read] ensure - captured_stdout.unlink - captured_stderr.unlink $stdout.reopen orig_stdout $stderr.reopen orig_stderr + captured_stdout.close! + captured_stderr.close! end end end |