зеркало из https://github.com/github/ruby.git
Use Test::Unit::PendedError instead of MiniTest::Skip for test-unit migration
This commit is contained in:
Родитель
544e37f184
Коммит
ecfbf1df33
|
@ -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
|
||||
|
|
|
@ -306,6 +306,7 @@ EOT
|
|||
|
||||
# Compatibility hack for assert_raise
|
||||
AssertionFailedError = MiniTest::Assertion
|
||||
PendedError = MiniTest::Skip
|
||||
|
||||
end
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче