зеркало из https://github.com/github/ruby.git
* 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
This commit is contained in:
Родитель
511c2a1647
Коммит
0728a4ed70
|
@ -1,3 +1,9 @@
|
|||
Sun Feb 23 11:33:25 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||
|
||||
* 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@fsij.org>
|
||||
|
||||
* lib/resolv.rb (bind_random_port): Rescue EPERM for FreeBSD which
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче