Skip to content
Snippets Groups Projects
Commit 0deedabb authored by Jack Nagel's avatar Jack Nagel
Browse files

nostdout doesn't need to capture output

parent b4fd54ae
No related branches found
No related tags found
No related merge requests found
......@@ -249,12 +249,12 @@ def nostdout
yield
else
begin
require 'stringio'
real_stdout = $stdout
$stdout = StringIO.new
out = $stdout.dup
$stdout.reopen("/dev/null")
yield
ensure
$stdout = real_stdout
$stdout.reopen(out)
out.close
end
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment