Message126107
| Author |
belopolsky |
| Recipients |
belopolsky, docs@python, eric.araujo, georg.brandl, lukasz.langa, rhettinger, terry.reedy |
| Date |
2011年01月12日.15:33:26 |
| SpamBayes Score |
2.3162217e-09 |
| Marked as misclassified |
No |
| Message-id |
<1294846422.29.0.831272331294.issue10225@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I have updated Sphinx and rerun py3k doctests. It looks like the newest Sphinx does not check examples unless the file has a .. testsetup:: directive somewhere. This is nice because it focuses on the files that are clearly intended to be doctest-checked. Of course, there are many perfectly good code examples that are now skipped, but this can be addressed in the next step.
I am attaching a patch that makes the following command succeed in py3k Doc directory:
$ sphinx-build --version
Sphinx v1.1pre
..
$ sphinx-build -b doctest -d build/doctrees . build/doctest
..
Doctest summary
===============
581 tests
0 failures ..
Most of the changes in issue10225-py3k.diff are non-controvercial with the exception of code fixes in collections and difflib.
In collections, I removed trailing whitespace from generated namedtuple code and in difflib I changed get_close_matches() return value from map object to a list. I would appreciate comments on these two changes. |
|