summaryrefslogtreecommitdiff
path: root/test/ruby/test_io.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_io.rb')
-rw-r--r--test/ruby/test_io.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb
index 186c148159..791e52b500 100644
--- a/test/ruby/test_io.rb
+++ b/test/ruby/test_io.rb
@@ -2156,22 +2156,6 @@ class TestIO < Test::Unit::TestCase
}
end
- def test_reopen_with_block
- make_tempfile {|t|
- open(__FILE__) do |f|
- f.gets
- assert_nothing_raised {
- reopened = nil
- f.reopen(t.path) do |_reopened|
- reopened = _reopened
- assert_equal("foo\n", reopened.gets)
- end
- assert_equal(true, reopened.closed?)
- }
- end
- }
- end
-
def test_reopen_inherit
mkcdtmpdir {
system(EnvUtil.rubybin, '-e', <<"End")