diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index edf449d..84a147a 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -10,6 +10,14 @@ 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?