utils: fix capture_stderr style
This commit is contained in:
parent
3c310b2e3d
commit
14099ffaf3
@ -377,7 +377,8 @@ ensure
|
||||
end
|
||||
|
||||
def capture_stderr
|
||||
old, $stderr = $stderr, StringIO.new
|
||||
old = $stderr
|
||||
$stderr = StringIO.new
|
||||
yield
|
||||
$stderr.string
|
||||
ensure
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user