[前][次][番号順一覧][スレッド一覧]

ruby-changes:33070

From: hsbt <ko1@a...>
Date: Sun, 23 Feb 2014 11:38:23 +0900 (JST)
Subject: [ruby-changes:33070] hsbt:r45149 (trunk): * test/net/imap/test_imap.rb: remove unused variables.

hsbt	2014-02-23 11:38:18 +0900 (Sun, 23 Feb 2014)

  New Revision: 45149

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45149

  Log:
    * test/net/imap/test_imap.rb: remove unused variables.
    * test/net/imap/test_imap_response_parser.rb: ditto.
    * test/net/pop/test_pop.rb: ditto.

  Modified files:
    trunk/ChangeLog
    trunk/test/net/imap/test_imap.rb
    trunk/test/net/imap/test_imap_response_parser.rb
    trunk/test/net/pop/test_pop.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 45148)
+++ ChangeLog	(revision 45149)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun Feb 23 11:33:25 2014  SHIBATA Hiroshi  <shibata.hiroshi@g...>
+
+	* test/net/imap/test_imap.rb: remove unused variables.
+	* test/net/imap/test_imap_response_parser.rb: ditto.
+	* test/net/pop/test_pop.rb: ditto.
+
 Sun Feb 23 02:19:51 2014  Tanaka Akira  <akr@f...>
 
 	* lib/resolv.rb (bind_random_port): Rescue EPERM for FreeBSD which
Index: test/net/imap/test_imap_response_parser.rb
===================================================================
--- test/net/imap/test_imap_response_parser.rb	(revision 45148)
+++ test/net/imap/test_imap_response_parser.rb	(revision 45149)
@@ -120,7 +120,7 @@ EOF https://github.com/ruby/ruby/blob/trunk/test/net/imap/test_imap_response_parser.rb#L120
   def test_msg_att_parse_error
     parser = Net::IMAP::ResponseParser.new
     e = assert_raise(Net::IMAP::ResponseParseError) {
-      response = parser.parse(<<EOF.gsub(/\n/, "\r\n").taint)
+      parser.parse(<<EOF.gsub(/\n/, "\r\n").taint)
 * 123 FETCH (UNKNOWN 92285)
 EOF
     }
Index: test/net/imap/test_imap.rb
===================================================================
--- test/net/imap/test_imap.rb	(revision 45148)
+++ test/net/imap/test_imap.rb	(revision 45149)
@@ -275,7 +275,6 @@ class IMAPTest < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/net/imap/test_imap.rb#L275
   def test_idle_done_not_during_idle
     server = create_tcp_server
     port = server.addr[1]
-    requests = []
     Thread.start do
       begin
         sock = server.accept
@@ -384,7 +383,6 @@ class IMAPTest < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/net/imap/test_imap.rb#L383
     begin
       imap = Net::IMAP.new(SERVER_ADDR, :port => port)
       begin
-        th = Thread.current
         m = Monitor.new
         in_idle = false
         exception_raised = false
Index: test/net/pop/test_pop.rb
===================================================================
--- test/net/pop/test_pop.rb	(revision 45148)
+++ test/net/pop/test_pop.rb	(revision 45149)
@@ -57,7 +57,7 @@ class TestPOP < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/net/pop/test_pop.rb#L57
   def test_apop_invalid_at
     pop_test(@stamp_base.sub('@', '.')) do |pop|
       assert_instance_of Net::APOP, pop
-      e = assert_raise Net::POPAuthenticationError do
+      assert_raise Net::POPAuthenticationError do
         pop.start(@ok_user, @users[@ok_user])
       end
     end

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]