[issue1034053] unittest.py patch: add skipped test functionality

Benjamin Peterson report at bugs.python.org
Sun Mar 22 18:20:54 CET 2009


Benjamin Peterson <benjamin at python.org> added the comment:

Ok, here's my unittest skipping patch. It supports skipping classes and
expected failures and includes skipping decorators.

I had to employ a little evil to make test skipping work for classes.
The made a new TestSuite class called ClassTestSuite, to contain the
tests for one class. It pretends to be a TestCase enough that in can be
completely skipped.

----------
Added file: http://bugs.python.org/file13396/unittest_galore.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1034053>
_______________________________________


More information about the Python-bugs-list mailing list