summaryrefslogtreecommitdiff
path: root/test/net
diff options
context:
space:
mode:
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 9484ab8f6c..6b34d9c5fa 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 cecc015133..3dc9d972db 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 c8aa9a83a8..94c76ede53 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