summaryrefslogtreecommitdiff
path: root/test/test_open3.rb
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-17 15:42:35 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-17 15:42:35 +0000
commitc66303cdd0a833162fb286d08392c4dcd15fda09 (patch)
treee165573a197000529dbb9c7e17a1500a9fd32f53 /test/test_open3.rb
parentcc77a811298bd7ab1c422f7f999b93c858327da9 (diff)
Remove needless closed?
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/test_open3.rb')
-rw-r--r--test/test_open3.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/test_open3.rb b/test/test_open3.rb
index c480b8cef1..bf1114972d 100644
--- a/test/test_open3.rb
+++ b/test/test_open3.rb
@@ -55,9 +55,9 @@ class TestOpen3 < Test::Unit::TestCase
i.close
assert_equal("baz", o.read)
ensure
- i.close if !i.closed?
- o.close if !o.closed?
- e.close if !e.closed?
+ i.close
+ o.close
+ e.close
t.join
end
@@ -104,8 +104,8 @@ class TestOpen3 < Test::Unit::TestCase
r, w = IO.pipe
yield r, w
ensure
- r.close if !r.closed?
- w.close if !w.closed?
+ r.close
+ w.close
end
def with_reopen(io, arg)
@@ -114,7 +114,7 @@ class TestOpen3 < Test::Unit::TestCase
yield old
ensure
io.reopen(old)
- old.close if old && !old.closed?
+ old.close
end
def test_popen2