diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-05 02:39:09 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-05 02:39:09 +0000 |
commit | a2f306998883c5ad1ca6e85a9afccba2205c9cdb (patch) | |
tree | 1a57ab30cc4bcf5037c5c3c0bdfe9a68b551bb77 /test | |
parent | 6f6a517635dff3c0c56aa8383acb28d6cf19120b (diff) | |
download | ruby-a2f306998883c5ad1ca6e85a9afccba2205c9cdb.tar.gz |
test_logger.rb: suppress a warning
* test/logger/test_logger.rb (test_datetime_format): suppress
warning when strftime called with empty format string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/logger/test_logger.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/logger/test_logger.rb b/test/logger/test_logger.rb index ce3952352c..628da99447 100644 --- a/test/logger/test_logger.rb +++ b/test/logger/test_logger.rb @@ -121,6 +121,7 @@ class TestLogger < Test::Unit::TestCase end def test_datetime_format + verbose, $VERBOSE = $VERBOSE, false dummy = STDERR logger = Logger.new(dummy) log = log_add(logger, INFO, "foo") @@ -131,6 +132,8 @@ class TestLogger < Test::Unit::TestCase logger.datetime_format = "" log = log_add(logger, INFO, "foo") assert_match(/^$/, log.datetime) + ensure + $VERBOSE = verbose end def test_formatter |