forked from testing-cabal/testtools
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new decorator to raise xfail on known exceptions
This commit adds a new decorator to TestCase that will take in a exception class and when it's raised by a test it will be converted to _ExpectedFailure. If a different exception is raised by the test it will just passthrough and be handled like normal.
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I might word this as "An expected exception, or list of exceptions, needs to be provided." since you could expect multiple expected exceptions, right?