diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2025-03-12 18:35:40 +0900 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2025-03-13 14:27:06 +0900 |
| commit | 2c4951329122143b5e0375caf1d4481173e403cb (patch) | |
| tree | 607fb7cadc666de18e99db1c5d0e9300bf996406 | |
| parent | 64d93539e78fc3c8c4527dded8f7f4288f7ff1ae (diff) | |
it is not working with Ruby 3.2
| -rw-r--r-- | test/ruby/test_io.rb | 2 |
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 |
