diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-09-10 20:56:07 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-09-11 08:48:03 +0900 |
commit | d05383812adf86e6c6a536246c03a2d401f10058 (patch) | |
tree | e45fbc574fb2b93b1426a5f258005e98f4f1ac72 /tool/lib/test/unit/assertions.rb | |
parent | 7cec81e073ed1d29910b3e1dc4dd5d7e9d2b490f (diff) |
Replace Test::Assertion and Test::Skip to Test::Unit::AssertionFailedError and Test::Unit::PendedError
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4813
Diffstat (limited to 'tool/lib/test/unit/assertions.rb')
-rw-r--r-- | tool/lib/test/unit/assertions.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/lib/test/unit/assertions.rb b/tool/lib/test/unit/assertions.rb index bdb25d0d85..335247458a 100644 --- a/tool/lib/test/unit/assertions.rb +++ b/tool/lib/test/unit/assertions.rb @@ -117,7 +117,7 @@ module Test self._assertions += 1 unless test then msg = msg.call if Proc === msg - raise Test::Assertion, msg + raise Test::Unit::AssertionFailedError, msg end true end @@ -578,7 +578,7 @@ module Test def skip msg = nil, bt = caller msg ||= "Skipped, no message given" @skip = true - raise Test::Skip, msg, bt + raise Test::Unit::PendedError, msg, bt end alias omit skip |