test/ruby: Check warning messages at a finer granularity

Instead of suppressing all warnings wholly in each test scripts by
setting `$VERBOSE` to `nil` in `setup` methods.
This commit is contained in:
Nobuyoshi Nakada 2020-12-17 20:06:18 +09:00 committed by GitHub
parent d597d7a8b6
commit 9908177857
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
Notes: git 2020-12-17 20:06:42 +09:00
Merged: https://github.com/ruby/ruby/pull/3925

Merged-By: nobu <nobu@ruby-lang.org>
17 changed files with 153 additions and 114 deletions

View file

@ -4,7 +4,6 @@ require 'test/unit'
class TestFixnum < Test::Unit::TestCase
def setup
@verbose = $VERBOSE
$VERBOSE = nil
end
def teardown