aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2021-09-06 19:33:56 +0900
committerKazuki Yamaguchi <k@rhe.jp>2021-10-16 18:24:08 +0900
commitf6cb25d2f56d76dd8dd610af41522dbb598e1f73 (patch)
tree01b53d8e72ac70190df7aaff4a6f6ce682d0d0a9
parent51d18715e491317aad005c77e0e408a614a4582c (diff)
downloadruby-openssl-f6cb25d2f56d76dd8dd610af41522dbb598e1f73.tar.gz
Use Test::Unit::PendedError instead of MiniTest::Skip for test-unit migration
(cherry picked from commit ruby/ruby@ecfbf1df33a1e90008baa131369c80cfa6282692)
-rw-r--r--test/openssl/utils.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/openssl/utils.rb b/test/openssl/utils.rb
index 8ee01164..ab5fab4b 100644
--- a/test/openssl/utils.rb
+++ b/test/openssl/utils.rb
@@ -294,8 +294,7 @@ class OpenSSL::SSLTestCase < OpenSSL::TestCase
timeout = EnvUtil.apply_timeout_scale(30)
th.join(timeout) or
th.raise(RuntimeError, "[start_server] thread did not exit in #{timeout} secs")
- rescue (defined?(MiniTest::Skip) ? MiniTest::Skip : Test::Unit::PendedError)
- # MiniTest::Skip is for the Ruby tree
+ rescue Test::Unit::PendedError
pend = $!
rescue Exception
end