Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#6024 closed (fixed)

Django's doctest clashes with

Reported by: marcink Owned by: nobody
Component: Testing framework Version: master
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


When you use in " test" it incorrectly reports
some statements as not executed. This is a known issue with From

"Older versions of doctest interfere with coverage's tracing of
statements, and you may get reports that none of your code is
executing. Use this patch to if you are experiencing

I checked, the patch from Zope does help. The attached file
contains the patch as applied to django.test._doctest.

Attachments (2)

doctest_patch_for_coverage_py.diff (816 bytes) - added by marcink 9 years ago.
doctest_patch_for_coverage_py-r6777.diff (1.0 KB) - added by toddobryan 9 years ago.

Download all attachments as: .zip

Change History (6)

Changed 9 years ago by marcink

Changed 9 years ago by toddobryan

comment:1 Changed 9 years ago by toddobryan

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

The previous patch doesn't apply cleanly to the current trunk.

comment:2 Changed 9 years ago by Simon G <dev@…>

  • Triage Stage changed from Unreviewed to Ready for checkin

comment:3 Changed 9 years ago by jacob

  • Resolution set to fixed
  • Status changed from new to closed

(In [6851]) Fixed #6024: Django's doctest no longer clashes with Thanks to Ned Batchelder for the original fix, and Todd O'Brian for his update to make it work with Django.

comment:4 Changed 9 years ago by toddobryan

Ahem, that's O'Bryan with a "y". :-)

Note: See TracTickets for help on using tickets.
Back to Top