[docs] [issue11468] Improve unittest basic example in the doc

Ezio Melotti report at bugs.python.org
Mon Dec 24 10:02:52 CET 2012


Ezio Melotti added the comment:

Given that this is a basic example, it's not necessary to introduce both the forms of assertRaises.
I personally find the context manager form more readable, and I prefer it to the regular one even if it takes two lines instead of one.

----------

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


More information about the docs mailing list