ruby-changes:59221
From: Kazuhiro <ko1@a...>
Date: Thu, 12 Dec 2019 22:05:49 +0900 (JST)
Subject: [ruby-changes:59221] 68321dd1fa (master): Move `rescue` for debug into block of assert_raise
https://git.ruby-lang.org/ruby.git/commit/?id=68321dd1fa From 68321dd1fa6f55e578bc9776f906ee1f948c7095 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA <zn@m...> Date: Thu, 12 Dec 2019 22:04:07 +0900 Subject: Move `rescue` for debug into block of assert_raise diff --git a/test/net/imap/test_imap.rb b/test/net/imap/test_imap.rb index 28590c3..850974f 100644 --- a/test/net/imap/test_imap.rb +++ b/test/net/imap/test_imap.rb @@ -482,9 +482,9 @@ class IMAPTest < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/net/imap/test_imap.rb#L482 end assert_raise(Net::IMAP::Error) do Net::IMAP.new(server_addr, :port => port) + rescue Errno::EINVAL => e # for debug on OpenCSW + raise({e: e, server: server, port: port, server_addr: server_addr}.inspect) end - rescue Errno::EINVAL => e # for debug on OpenCSW - raise({e: e, server: server, port: port, server_addr: server_addr}.inspect) end def test_default_port -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/