aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorsorah <sorah@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-27 13:37:49 +0000
committersorah <sorah@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-27 13:37:49 +0000
commit2828593e1adb682d802d40570cadd0ff1b246bb2 (patch)
tree32301ff41e194815187a2b456922bb910091c29e /lib
parent2f6d8bdc94926a625f769f72b890ed78553c928f (diff)
downloadruby-2828593e1adb682d802d40570cadd0ff1b246bb2.tar.gz
* lib/test/unit.rb (Worker#close): "closing IO if IO is closed"
should be "closing IO if IO isn't closed" git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/test/unit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/test/unit.rb b/lib/test/unit.rb
index 9a85951b83..eb0666a0e6 100644
--- a/lib/test/unit.rb
+++ b/lib/test/unit.rb
@@ -294,7 +294,7 @@ module Test
def close
begin
- @io.close if @io.closed?
+ @io.close unless @io.closed?
rescue IOError; end
self
end