diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2024-11-26 09:22:59 +0900 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2024-11-26 00:28:06 +0000 |
| commit | 36f67f6bbbacb242e2c9e8fbd6d07ac706287ba2 (patch) | |
| tree | 702f59b609ff15b19c905b7a174dfbef6e14c773 /test | |
| parent | 7be0d505146deb4a8a641da3b1c0e4d2aa174784 (diff) | |
[ruby/resolv] _1 is not provided in Ruby 2.5
https://github.com/ruby/resolv/commit/83f18e2a49
Diffstat (limited to 'test')
| -rw-r--r-- | test/resolv/test_dns.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/resolv/test_dns.rb b/test/resolv/test_dns.rb index fb5842f048..1d921b8377 100644 --- a/test/resolv/test_dns.rb +++ b/test/resolv/test_dns.rb @@ -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 } + ts.each(&:close) + us.each(&:close) end else # Explicitly specified port, don't retry the bind. |
