mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
envutil.rb: define flush method
* test/lib/envutil.rb (verbose_warning): flush is called on STDOUT and STDERR sometimes. From: Nobuyoshi Nakada <nobu@ruby-lang.org> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9940a8d181
commit
570642bf15
1 changed files with 1 additions and 0 deletions
|
@ -174,6 +174,7 @@ module EnvUtil
|
|||
def verbose_warning
|
||||
class << (stderr = "".dup)
|
||||
alias write concat
|
||||
def flush; end
|
||||
end
|
||||
stderr, $stderr = $stderr, stderr
|
||||
$VERBOSE = true
|
||||
|
|
Loading…
Reference in a new issue