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