summaryrefslogtreecommitdiff
path: root/test/net
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-02-23 02:38:18 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-02-23 02:38:18 +0000
commit0728a4ed706119abe392f330dc31f890964ce885 (patch)
tree0e6d2d18c2c19f4717c0f620e1ce4f0dbd604b1b /test/net
parent511c2a1647780dc58772c4031e2250c17425863b (diff)
* 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/net')
-rw-r--r--test/net/imap/test_imap.rb2
-rw-r--r--test/net/imap/test_imap_response_parser.rb2
-rw-r--r--test/net/pop/test_pop.rb2
3 files changed, 2 insertions, 4 deletions
diff --git a/test/net/imap/test_imap.rb b/test/net/imap/test_imap.rb
index 9484ab8..6b34d9c 100644
--- a/test/net/imap/test_imap.rb
+++ b/test/net/imap/test_imap.rb
@@ -275,7 +275,6 @@ class IMAPTest < Test::Unit::TestCase
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
begin
imap = Net::IMAP.new(SERVER_ADDR, :port => port)
begin
- th = Thread.current
m = Monitor.new
in_idle = false
exception_raised = false
diff --git a/test/net/imap/test_imap_response_parser.rb b/test/net/imap/test_imap_response_parser.rb
index cecc015..3dc9d97 100644
--- a/test/net/imap/test_imap_response_parser.rb
+++ b/test/net/imap/test_imap_response_parser.rb
@@ -120,7 +120,7 @@ EOF
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
}
diff --git a/test/net/pop/test_pop.rb b/test/net/pop/test_pop.rb
index c8aa9a8..94c76ed 100644
--- a/test/net/pop/test_pop.rb
+++ b/test/net/pop/test_pop.rb
@@ -57,7 +57,7 @@ class TestPOP < Test::Unit::TestCase
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