diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-09-13 21:14:42 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-09-13 21:14:42 +0900 |
commit | ec6f04c092027102369acfe19368e65ee07d8b52 (patch) | |
tree | a628b9394fab7e8b45dad4ce3a9de18886cca03d /test | |
parent | be04006c7d2f9aeb7e9d8d09d945b3a9c7850202 (diff) |
Use capture_output instead of capture_io
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_enumerator.rb | 2 | ||||
-rw-r--r-- | test/ruby/test_pack.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_enumerator.rb b/test/ruby/test_enumerator.rb index 4342c10d02..c823b79c6d 100644 --- a/test/ruby/test_enumerator.rb +++ b/test/ruby/test_enumerator.rb @@ -79,7 +79,7 @@ class TestEnumerator < Test::Unit::TestCase assert_raise(NoMethodError) { enum.each {} } enum.freeze assert_raise(ArgumentError) { - capture_io do + capture_output do # warning: Enumerator.new without a block is deprecated; use Object#to_enum enum.__send__(:initialize, @obj, :foo) end diff --git a/test/ruby/test_pack.rb b/test/ruby/test_pack.rb index 60edd00186..c9ca9c3dfd 100644 --- a/test/ruby/test_pack.rb +++ b/test/ruby/test_pack.rb @@ -764,7 +764,7 @@ EXPECTED $VERBOSE = true - _, err = capture_io do + _, err = capture_output do assert_equal "\000", [0].pack("*U") end @@ -783,7 +783,7 @@ EXPECTED $VERBOSE = true - _, err = capture_io do + _, err = capture_output do assert_equal [0], "\000".unpack("*U") end |