diff options
| author | Étienne Barrié <etienne.barrie@gmail.com> | 2025-09-30 17:35:32 +0200 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2025-10-01 00:49:12 +0000 |
| commit | 3eda2493ef00a684a1876309b1c1f95455e967fb (patch) | |
| tree | 7d96a87a7a62e8b6a117756c8ff75fab1509ae69 | |
| parent | 17252958c9ce094c583616257452cfb1695dc7ef (diff) | |
[ruby/ipaddr] Remove warning by asserting its presence
$ rake test >/dev/null
/tmp/test/test_ipaddr.rb:202: warning: IPAddr#ipv4_compat is obsolete
https://github.com/ruby/ipaddr/commit/31d62407c2
| -rw-r--r-- | test/test_ipaddr.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_ipaddr.rb b/test/test_ipaddr.rb index ac8921e75c..64927a1444 100644 --- a/test/test_ipaddr.rb +++ b/test/test_ipaddr.rb @@ -199,7 +199,9 @@ class TC_IPAddr < Test::Unit::TestCase assert_equal(128, b.prefix) a = IPAddr.new("192.168.0.0/16") - b = a.ipv4_compat + assert_warning(/obsolete/) { + b = a.ipv4_compat + } assert_equal("::192.168.0.0", b.to_s) assert_equal(Socket::AF_INET6, b.family) assert_equal(112, b.prefix) |
