From 2828593e1adb682d802d40570cadd0ff1b246bb2 Mon Sep 17 00:00:00 2001 From: sorah Date: Tue, 27 Dec 2011 13:37:49 +0000 Subject: [PATCH] * 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 --- ChangeLog | 5 +++++ lib/test/unit.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index fd8ed4dcb6..0ff9722311 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Dec 27 22:34:54 2011 Shota Fukumori + + * lib/test/unit.rb (Worker#close): "closing IO if IO is closed" + should be "closing IO if IO isn't closed" + Tue Dec 27 22:04:27 2011 Nobuyoshi Nakada * st.c (st_update): new function to lookup the given key and 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