[ruby/stringio] Suppress warnings against pattern matching on ruby 2.7

https://github.com/ruby/stringio/commit/cf58a203eb
This commit is contained in:
Nobuyoshi Nakada 2025-11-10 13:03:50 +09:00 committed by git
parent 19295f5db3
commit 28f760bf70

View File

@ -996,7 +996,7 @@ class TestStringIO < Test::Unit::TestCase
intptr_max = RbConfig::LIMITS["INTPTR_MAX"]
return if intptr_max > StringIO::MAX_LENGTH
limit = intptr_max - 0x10
assert_separately(%w[-rstringio], "#{<<-"begin;"}\n#{<<-"end;"}")
assert_separately(%w[-W0 -rstringio], "#{<<-"begin;"}\n#{<<-"end;"}")
begin;
limit = #{limit}
ary = []