Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #429 (closed enhancement: fixed)

Opened 9 years ago

Last modified 4 years ago

enable doctests for *.txt and *.rst

Reported by: David Bernard <dwayne@…> Owned by: kevin
Priority: normal Milestone: 1.0.x bugfix
Component: Tests Version:
Severity: normal Keywords:
Cc:

Description (last modified by kevin) (diff)

Change nose to handle doctests that are in *.txt and *.rst files. Right now, Nose only looks in docstrings for doctests.

Attachments

tests_doctests.py Download (487 bytes) - added by David Bernard <dwayne@…> 9 years ago.

Change History

Changed 9 years ago by David Bernard <dwayne@…>

comment:1 Changed 9 years ago by kevin

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

I would very strongly prefer to see this somehow incorporated into Nose. As a last resort, we could add a function to testutil.py to run doctests.

comment:2 Changed 9 years ago by kevin

  • Status changed from closed to reopened
  • Milestone 0.9 deleted
  • Resolution wontfix deleted
  • Description modified (diff)
  • Summary changed from [PATCH] enable doctests for *.txt and *.rst to enable doctests for *.txt and *.rst

I'm reopening the ticket because this is a feature I'd like to see, just not the implementation. I'm removing the milestone, though, because this is not a 0.9 blocker.

comment:3 Changed 8 years ago by jorge.vargas

  • Milestone set to 1.0b1

just a suggestion to have this at 1.0?

comment:4 Changed 8 years ago by khorn

  • Milestone changed from 1.0b1 to 1.0

milestone passed, changing milestone to 1.0 (based on Jorge's suggestion)

comment:5 Changed 8 years ago by alberto

  • Milestone changed from 1.0 to 1.1

comment:6 Changed 8 years ago by jorge.vargas

please decide if this should be applied or not.

comment:7 Changed 7 years ago by alberto

  • Milestone changed from 1.1 to __unclassified__

Batch moved into unclassified from 1.1 to properly track progress on the later

comment:8 Changed 7 years ago by Chris Arndt

  • Component changed from Docs to tests

comment:9 Changed 6 years ago by jorge.vargas

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

nosetests now provides a --doctest-extension flag

comment:10 Changed 4 years ago by chrisz

  • Milestone changed from __unclassified__ to 1.0.x bugfix
Note: See TracTickets for help on using tickets.