diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-03-16 13:07:05 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-03-17 18:50:55 +0900 |
commit | 3d4c3f9e4ffc31e652b1bfab4d78f8b27d5b8126 (patch) | |
tree | b70b311fcdaa115a33bce576a166994df4813504 /test/rubygems/helper.rb | |
parent | 4bb5ce8188c7623106d124d3398c6b73bfa8ecd4 (diff) | |
download | ruby-3d4c3f9e4ffc31e652b1bfab4d78f8b27d5b8126.tar.gz |
[rubygems/rubygems] util/rubocop -A --only Style/ParallelAssignment
https://github.com/rubygems/rubygems/commit/5c88c77873
Diffstat (limited to 'test/rubygems/helper.rb')
-rw-r--r-- | test/rubygems/helper.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/rubygems/helper.rb b/test/rubygems/helper.rb index b4f39c1d79..4674c50abb 100644 --- a/test/rubygems/helper.rb +++ b/test/rubygems/helper.rb @@ -120,9 +120,11 @@ class Gem::TestCase < Test::Unit::TestCase begin require "tempfile" - captured_stdout, captured_stderr = Tempfile.new("out"), Tempfile.new("err") + captured_stdout = Tempfile.new("out") + captured_stderr = Tempfile.new("err") - orig_stdout, orig_stderr = $stdout.dup, $stderr.dup + orig_stdout = $stdout.dup + orig_stderr = $stderr.dup $stdout.reopen captured_stdout $stderr.reopen captured_stderr @@ -1307,7 +1309,8 @@ Also, a list: end def silence_warnings - old_verbose, $VERBOSE = $VERBOSE, false + old_verbose = $VERBOSE + $VERBOSE = false yield ensure $VERBOSE = old_verbose |