Comment #2 on issue 2126 by smichr: fix doctest or quality testing to recognize doctests
http://code.google.com/p/sympy/issues/detail?id=2126

A tweak to the regex that finds the docstring tests will allow this to work. It's easy to find the start of the test (it always starts with >>>) but the end should take all lines that have *at least* the indentation of the starting line; it's possible that lines will have more indentation than that but I don't think they can ever have less.

Here is the diff. I'll try to file this upsteam. Any other suggestions in the meantime?

$ diff ../../../python26/Lib/doctest.py ../../../python26/Lib/doctest2.py
519c519
<                      .*$\n?       # But any other line
---
(?P=indent).*$\n? # But any other line starting wit
h indent

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" 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/sympy-issues?hl=en.

Reply via email to