#6024: Django's doctest clashes with coverage.py -----------------------+---------------------------------------------------- Reporter: marcink | Owner: nobody Status: new | Component: Unit test system Version: SVN | Keywords: Stage: Unreviewed | Has_patch: 1 -----------------------+---------------------------------------------------- When you use coverage.py in "manage.py test" it incorrectly reports some statements as not executed. This is a known issue with coverage.py. From http://nedbatchelder.com/code/modules/coverage.html :
"Older versions of doctest interfere with coverage's tracing of statements, and you may get reports that none of your code is executing. Use [http://svn.zope.org/Zope3/trunk/src/zope/testing/doctest.py?rev=28679&r1=28703&r2=28705 this patch] to doctest.py if you are experiencing problems." I checked, the patch from Zope does help. The attached file contains the patch as applied to django.test._doctest. -- Ticket URL: <http://code.djangoproject.com/ticket/6024> Django Code <http://code.djangoproject.com/> The web framework for perfectionists with deadlines --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---
