aboutsummaryrefslogtreecommitdiffstats
path: root/test/net/imap/test_imap.rb
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-09-15 07:56:04 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-09-15 07:56:04 +0000
commitcc9b6ba611711aca1a124e6666b9a57c7dda9d2b (patch)
tree58d579bcb8364f8448c61500d69880db191fa2ce /test/net/imap/test_imap.rb
parent6bab4ea9917dc05cd2c94aead2e96eb7df7d4be1 (diff)
downloadruby-cc9b6ba611711aca1a124e6666b9a57c7dda9d2b.tar.gz
reverting; http://rubyforge.org/tracker/?func=detail&atid=4099&aid=28566&group_id=1040
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/net/imap/test_imap.rb')
-rw-r--r--test/net/imap/test_imap.rb22
1 files changed, 6 insertions, 16 deletions
diff --git a/test/net/imap/test_imap.rb b/test/net/imap/test_imap.rb
index 8ccec642c0..06ecca0f00 100644
--- a/test/net/imap/test_imap.rb
+++ b/test/net/imap/test_imap.rb
@@ -49,13 +49,9 @@ class IMAPTest < Test::Unit::TestCase
if defined?(OpenSSL)
assert_raise(OpenSSL::SSL::SSLError) do
imaps_test do |port|
- begin
- Net::IMAP.new("localhost",
- :port => port,
- :ssl => true)
- rescue SystemCallError
- skip $!
- end
+ Net::IMAP.new("localhost",
+ :port => port,
+ :ssl => true)
end
end
end
@@ -65,13 +61,9 @@ class IMAPTest < Test::Unit::TestCase
if defined?(OpenSSL)
assert_nothing_raised do
imaps_test do |port|
- begin
- Net::IMAP.new("localhost",
- :port => port,
- :ssl => { :ca_file => CA_FILE })
- rescue SystemCallError
- skip $!
- end
+ Net::IMAP.new("localhost",
+ :port => port,
+ :ssl => { :ca_file => CA_FILE })
end
end
end
@@ -112,8 +104,6 @@ class IMAPTest < Test::Unit::TestCase
imap
end
end
- rescue SystemCallError
- skip $!
ensure
if imap && !imap.disconnected?
imap.disconnect