summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2025-03-12 18:35:40 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2025-03-13 14:27:06 +0900
commit2c4951329122143b5e0375caf1d4481173e403cb (patch)
tree607fb7cadc666de18e99db1c5d0e9300bf996406
parent64d93539e78fc3c8c4527dded8f7f4288f7ff1ae (diff)
it is not working with Ruby 3.2
-rw-r--r--test/ruby/test_io.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb
index 3467e1124c..2e6347e7f4 100644
--- a/test/ruby/test_io.rb
+++ b/test/ruby/test_io.rb
@@ -1136,7 +1136,7 @@ class TestIO < Test::Unit::TestCase
body.rewind
payload = []
- IO.copy_stream(body, dst_class.new{payload << it})
+ IO.copy_stream(body, dst_class.new{|data| payload << data})
body.rewind
assert_equal(body.read, payload.join, bug21131)
ensure