TestSkipped not worth the hassle
Bug #1529143 reported by
Jonathan Lange
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
testtools |
Triaged
|
Low
|
Unassigned |
Bug Description
stdlib unittest and unittest2 just raise SkipTest and don't have a `skipException` variable like we do. Some code (e.g. https:/
Is there any value in having our own special TestSkipped exception? Can we just change skipException to unittest.SkipTest?
To post a comment you must log in.
Looking at the code a bit more:
* we actually _do_ override our TestSkipped with SkipTest, if we can find it SkipTest` to `unittest. SkipTest` , which I think is wrong trial.unittest`
* we currently prefer `unittest2.
* Twisted confuses this by mutating the module name of stdlib SkipTest to be `twisted.
Thus,
* deleting TestSkipped should wait until after we drop Python 2.6 support
* we should prefer unittest.SkipTest to unittest2.SkipTest. That is, should only use unittest2.SkipTest if the stdlib SkipTest is unavailable