ruby-changes:73995
From: Samuel <ko1@a...>
Date: Sat, 15 Oct 2022 16:05:14 +0900 (JST)
Subject: [ruby-changes:73995] 52fcb3a724 (master): Add missing `#close` call to `test_dup_timeout` test. (#6560)
https://git.ruby-lang.org/ruby.git/commit/?id=52fcb3a724 From 52fcb3a72446189448e96a465d8c91c469ac0ed2 Mon Sep 17 00:00:00 2001 From: Samuel Williams <samuel.williams@o...> Date: Sat, 15 Oct 2022 20:04:58 +1300 Subject: Add missing `#close` call to `test_dup_timeout` test. (#6560) --- test/ruby/test_io.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index 989c4c8991..6313e11179 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -1446,6 +1446,8 @@ class TestIO < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_io.rb#L1446 r.timeout = 0.1 r2 = r.dup assert_equal(0.1, r2.timeout) + ensure + r2&.close end end -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/