Release 0.10.0
Pre-release
Pre-release
API-Incompatible Changes
- Drop support for Python 3.4.
API Additions
AssertRaisesContext
andAssertWarnsContext
now return themselves
when__enter__()
is called. By extension it now easier to call
add_test()
withassert_raises()
et al:
with assert_raises(KeyError) as context:
context.add_test(...)
...
- Add
AssertRaisesContext.exc_val
property to access the caught
exception after leaving the context manager:
with assert_raises(KeyError) as context:
...
assert_equal("expected message", str(context.exc_val))