aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorglass <glass@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-23 04:19:53 +0000
committerglass <glass@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-23 04:19:53 +0000
commit03c6297fe8e1f3a06297b32f0ee25440b4b4a214 (patch)
treedf2ff84e9714cb5e4577524ba307ee32ef7719d4 /test
parentce3be9265ee617ab730e21ba1ae04201dc479b3b (diff)
downloadruby-03c6297fe8e1f3a06297b32f0ee25440b4b4a214.tar.gz
Revert "Allow IO#reopen to take a block"
This reverts r59142. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-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")