Skip to content

Commit

Permalink
+ Changed assert_raises to only catch Assertion since that covers Ski…
Browse files Browse the repository at this point in the history
…p and friends.

[git-p4: depot-paths = "//src/minitest/dev/": change = 12412]
  • Loading branch information
zenspider committed Nov 23, 2019
1 parent 5802aa0 commit 58c0b2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/minitest/assertions.rb
Expand Up @@ -399,7 +399,7 @@ def assert_raises *exp
rescue *exp => e
pass # count assertion
return e
rescue Minitest::Skip, Minitest::Assertion
rescue Minitest::Assertion # incl Skip & UnexpectedError
# don't count assertion
raise
rescue SignalException, SystemExit
Expand Down

0 comments on commit 58c0b2f

Please sign in to comment.