Skip to content

Commit fa6b9f7

Browse files
nobumatzbot
authored andcommitted
[ruby/stringio] Suppress a warning for the chilled string
ruby/stringio@4a35291ed3
1 parent a1bdc36 commit fa6b9f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/stringio/test_stringio.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ def test_do_not_mutate_shared_buffers
2121
# In this case, we must use eval because we need two strings literals that
2222
# are long enough they cannot be embedded, but also contain the same bytes.
2323

24-
a = eval(("x" * 1024).dump)
25-
b = eval(("x" * 1024).dump)
24+
a = eval("+"+("x" * 1024).dump)
25+
b = eval("+"+("x" * 1024).dump)
2626

2727
s = StringIO.new(b)
2828
s.getc

0 commit comments

Comments
 (0)