1
0
Fork 0
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:
nobu 2017-12-18 04:23:16 +00:00
parent 9940a8d181
commit 570642bf15

View file

@ -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