summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2024-11-26 09:22:59 +0900
committergit <[email protected]>2024-11-26 00:28:06 +0000
commit36f67f6bbbacb242e2c9e8fbd6d07ac706287ba2 ()
tree702f59b609ff15b19c905b7a174dfbef6e14c773
parent7be0d505146deb4a8a641da3b1c0e4d2aa174784 (diff)
[ruby/resolv] _1 is not provided in Ruby 2.5
https://.com/ruby/resolv/commit/83f18e2a49
-rw-r--r--test/resolv/test_dns.rb4
1 files changed, 2 insertions, 2 deletions
@@ -89,8 +89,8 @@ class TestResolvDNS < Test::Unit::TestCase
# If we get to this point, we have a valid t & u socket
yield us.last, ts.last
ensure
- ts.each { _1.close }
- us.each { _1.close }
end
else
# Explicitly specified port, don't retry the bind.