From 3eda2493ef00a684a1876309b1c1f95455e967fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Barri=C3=A9?= Date: Tue, 30 Sep 2025 17:35:32 +0200 Subject: [PATCH] [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 --- test/test_ipaddr.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)