PageRenderTime 33ms CodeModel.GetById 29ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/unit_tests/test_issue_159.rst

https://bitbucket.org/jpellerin/nose/
ReStructuredText | 6 lines | 6 code | 0 blank | 0 comment | 0 complexity | 7776586c0b79d2af30e55a7484561082 MD5 | raw file
1    >>> from nose.plugins.errorclass import ErrorClass, ErrorClassPlugin
2    >>> class X(Exception):
3    ...     pass
4    >>> xes = ErrorClass(X, label='XXX')
5    Traceback (most recent call last):
6    TypeError: 'isfailure' is a required named argument for ErrorClass