summaryrefslogtreecommitdiff
path: root/test/csv
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-10-15 23:29:49 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-10-15 23:29:49 +0900
commit375cf129189f32f7be76ac525035bcde691a63e7 (patch)
treeda36b6f73556eb785b38d8bba074cf95963402f1 /test/csv
parentc01df7e58f34eb81bf569614091a4db428c61282 (diff)
test/csv/write/test_general.rb: suppress warnings
of "setting Encoding.default_internal".
Diffstat (limited to 'test/csv')
-rw-r--r--test/csv/write/test_general.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/csv/write/test_general.rb b/test/csv/write/test_general.rb
index d157b74..f39456b 100644
--- a/test/csv/write/test_general.rb
+++ b/test/csv/write/test_general.rb
@@ -225,10 +225,14 @@ module TestCSVWriteGeneral
def with_default_internal(encoding)
original = Encoding.default_internal
begin
+ $VERBOSE, verbose_bak = nil, $VERBOSE
Encoding.default_internal = encoding
+ $VERBOSE = verbose_bak
yield
ensure
+ $VERBOSE, verbose_bak = nil, $VERBOSE
Encoding.default_internal = original
+ $VERBOSE = verbose_bak
end
end
end