utils.text docstrings inaccurate, not testable with doctest.testmod
|Reported by:||akaihola||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The code examples in the docstrings of [source:django/trunk/django/utils/text.py django.utils.text] can't be tested with doctest.testmod because of Python's issue 1108. A simple work-around would be to copy docstrings of individual functions to the module's __doc__ variable.
Also, the code examples are not accurate. Attached is a doctest.testmod run after fixing the doctest issue.