mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 20:19:19 +00:00
[ruby/stringio] Suppress warnings against pattern matching on ruby 2.7
https://github.com/ruby/stringio/commit/cf58a203eb
This commit is contained in:
parent
19295f5db3
commit
28f760bf70
@ -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 = []
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user