[docs] [issue16751] Using modern unittest asserts in the documentation

Serhiy Storchaka report at bugs.python.org
Mon Dec 24 08:22:56 CET 2012


Serhiy Storchaka added the comment:

But with the patch the minimal set of asserts will be assertEqual, assertIn, and assertRaises. The example is just too old (assertIn was added in 3.1). If you want to minimize assert's set, you can get rid of assertEqual too (using only assertTrue). But I don't think it is a good idea.

----------

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


More information about the docs mailing list