ruby-changes:59298
From: Nobuyoshi <ko1@a...>
Date: Tue, 17 Dec 2019 18:17:24 +0900 (JST)
Subject: [ruby-changes:59298] 9421c78041 (master): [ruby/logger] Fixed leaked tempfile
https://git.ruby-lang.org/ruby.git/commit/?id=9421c78041 From 9421c7804191b73aa9fde8f14235b3a1f37ffd4b Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Mon, 16 Dec 2019 12:33:13 +0900 Subject: [ruby/logger] Fixed leaked tempfile https://github.com/ruby/logger/commit/fb3eff153f diff --git a/test/logger/test_logdevice.rb b/test/logger/test_logdevice.rb index 5adf06e..eaea4c8 100644 --- a/test/logger/test_logdevice.rb +++ b/test/logger/test_logdevice.rb @@ -276,7 +276,7 @@ class TestLogDevice < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/logger/test_logdevice.rb#L276 end def test_invalid_shifting_age - assert_raise(ArgumentError) { Logger.new(@filename, 'invalid') } + assert_raise(ArgumentError) { Logger::Period.next_rotate_time(Time.now, 'invalid') } assert_raise(ArgumentError) { Logger::Period.previous_period_end(Time.now, 'invalid') } end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/