From fa6b9f75efa8411829aa987b81b9c5ca0e081462 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 21 Feb 2025 19:39:47 +0900 Subject: [PATCH] [ruby/stringio] Suppress a warning for the chilled string https://github.com/ruby/stringio/commit/4a35291ed3 --- test/stringio/test_stringio.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/stringio/test_stringio.rb b/test/stringio/test_stringio.rb index a00e7b8500..ffaa2efa0a 100644 --- a/test/stringio/test_stringio.rb +++ b/test/stringio/test_stringio.rb @@ -21,8 +21,8 @@ class TestStringIO < Test::Unit::TestCase # In this case, we must use eval because we need two strings literals that # are long enough they cannot be embedded, but also contain the same bytes. - a = eval(("x" * 1024).dump) - b = eval(("x" * 1024).dump) + a = eval("+"+("x" * 1024).dump) + b = eval("+"+("x" * 1024).dump) s = StringIO.new(b) s.getc