Skip to content

Commit cf58a20

Browse files
committed
Suppress warnings against pattern matching on ruby 2.7
1 parent 27b2fb2 commit cf58a20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/stringio/test_stringio.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ def test_overflow
996996
intptr_max = RbConfig::LIMITS["INTPTR_MAX"]
997997
return if intptr_max > StringIO::MAX_LENGTH
998998
limit = intptr_max - 0x10
999-
assert_separately(%w[-rstringio], "#{<<-"begin;"}\n#{<<-"end;"}")
999+
assert_separately(%w[-W0 -rstringio], "#{<<-"begin;"}\n#{<<-"end;"}")
10001000
begin;
10011001
limit = #{limit}
10021002
ary = []

0 commit comments

Comments
 (0)