module documentation
Undocumented
Function | assert |
Undocumented |
Function | assert |
Undocumented |
Function | assert |
Undocumented |
Function | assert |
Undocumented |
Function | assert |
Undocumented |
Function | assert |
Undocumented |
Function | eq_ |
Assert a == b, with repr messaging on failure. |
Function | expect |
Undocumented |
Function | expect |
Undocumented |
Function | expect |
Undocumented |
Function | expect |
Undocumented |
Function | in_ |
Assert a in b, with repr messaging on failure. |
Function | ne_ |
Assert a != b, with repr messaging on failure. |
Function | not |
Assert a in not b, with repr messaging on failure. |
Class | _ |
Undocumented |
Function | _assert |
assert that any exception we're catching does not have a __context__ without a __cause__, and that __suppress_context__ is never set. |
Function | _assert |
assert that any exception we're catching does not have a __context__ without a __cause__, and that __suppress_context__ is never set. |
Function | _assert |
Undocumented |
Function | _expect |
Undocumented |
def assert_raises_message_with_given_cause(except_cls, msg, cause_cls, callable_, *args, **kwargs):
(source)
¶
Undocumented
def assert_raises_message_with_proper_context(except_cls, msg, callable_, *args, **kwargs):
(source)
¶
Undocumented
assert that any exception we're catching does not have a __context__ without a __cause__, and that __suppress_context__ is never set. Python 3 will report nested as exceptions as "during the handling of error X, error Y occurred". That's not what we want to do. We want these exceptions in a cause chain.
assert that any exception we're catching does not have a __context__ without a __cause__, and that __suppress_context__ is never set. Python 3 will report nested as exceptions as "during the handling of error X, error Y occurred". That's not what we want to do. We want these exceptions in a cause chain.