summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2020-09-25 23:38:01 +0900
committerYusuke Endoh <mame@ruby-lang.org>2020-09-25 23:38:01 +0900
commit79063d8cbfb7ce4740774289252a2a20dc9a5dc1 (patch)
tree7f4dbeb4aec61dcdfb7b881efd1868efd06345fa /test
parente4b2c4fca5dc294799d33e506ddaf98f1a178082 (diff)
test/ruby/test_enumerator.rb: remove capture_io that is no longer needed
The deprecation warning was disabled, and the code to check the warning was removed at 996af2ce086249e904b2ce95ab2fcd1de7d757be, thus capture_io is no longer needed.
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_enumerator.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/ruby/test_enumerator.rb b/test/ruby/test_enumerator.rb
index b619150571..8544c42fd4 100644
--- a/test/ruby/test_enumerator.rb
+++ b/test/ruby/test_enumerator.rb
@@ -69,9 +69,7 @@ class TestEnumerator < Test::Unit::TestCase
def test_initialize
assert_equal([1, 2, 3], @obj.to_enum(:foo, 1, 2, 3).to_a)
- _, err = capture_io do
- assert_equal([1, 2, 3], Enumerator.new(@obj, :foo, 1, 2, 3).to_a)
- end
+ assert_equal([1, 2, 3], Enumerator.new(@obj, :foo, 1, 2, 3).to_a)
assert_equal([1, 2, 3], Enumerator.new { |y| i = 0; loop { y << (i += 1) } }.take(3))
assert_raise(ArgumentError) { Enumerator.new }