From 570642bf154a2366506202821584ac38e5a8c4ff Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 18 Dec 2017 04:23:16 +0000 Subject: [PATCH] envutil.rb: define flush method * test/lib/envutil.rb (verbose_warning): flush is called on STDOUT and STDERR sometimes. From: Nobuyoshi Nakada git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/lib/envutil.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/lib/envutil.rb b/test/lib/envutil.rb index a5621963e1..fce0e1b382 100644 --- a/test/lib/envutil.rb +++ b/test/lib/envutil.rb @@ -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