ruby-changes:18521
From: shugo <ko1@a...>
Date: Fri, 14 Jan 2011 15:38:42 +0900 (JST)
Subject: [ruby-changes:18521] Ruby:r30544 (trunk): * test/net/imap/test_imap.rb: call neither logout nor disconnect
shugo 2011-01-14 15:38:32 +0900 (Fri, 14 Jan 2011) New Revision: 30544 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30544 Log: * test/net/imap/test_imap.rb: call neither logout nor disconnect unless connected. patch by Kazuhiro NISHIYAMA. [ruby-dev:42860] Modified files: trunk/ChangeLog trunk/test/net/imap/test_imap.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 30543) +++ ChangeLog (revision 30544) @@ -1,3 +1,8 @@ +Fri Jan 14 15:32:29 2011 Shugo Maeda <shugo@r...> + + * test/net/imap/test_imap.rb: call neither logout nor disconnect + unless connected. patch by Kazuhiro NISHIYAMA. [ruby-dev:42860] + Fri Jan 14 14:56:57 2011 NARUSE, Yui <naruse@r...> * lib/net/imap.rb: use bytesize for binary strings. Index: test/net/imap/test_imap.rb =================================================================== --- test/net/imap/test_imap.rb (revision 30543) +++ test/net/imap/test_imap.rb (revision 30544) @@ -435,9 +435,9 @@ begin begin imap = yield(port) - imap.logout + imap.logout if !imap.disconnected? ensure - imap.disconnect if imap + imap.disconnect if imap && !imap.disconnected? end ensure server.close -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/