summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_io.rb10
1 files changed, 1 insertions, 9 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb
index 84a147aa06..36dab0815d 100644
--- a/test/ruby/test_io.rb
+++ b/test/ruby/test_io.rb
@@ -10,14 +10,6 @@ require 'weakref'
require_relative 'envutil'
class TestIO < Test::Unit::TestCase
- def setup
- GC.disable
- end
-
- def teardown
- GC.enable
- end
-
def have_close_on_exec?
begin
$stdin.close_on_exec?
@@ -1807,7 +1799,7 @@ End
}
end
ensure
- fds.each {|fd| IO.for_fd(fd).close rescue next}
+ GC.start
end
def test_flush_in_finalizer2