You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running make doctest in the Doc/ repository of master fails on the 2.7 release notes. This patch excludes these files from make doctest, because it doesn't seem worth it to try to get these running in Python 3.
Since I stuck my neck out, I will say that this seems reasonable to me. We could probably still run doctest in the actual 2.7 branch to detect any errors there.
Yes, I realized this patch is wrong: it excludes the 2.7 release notes from all make steps, not just make doctest.
The attached patch reverts the conf.py change and instead uses directives to skip most doctests in the 2.7 release notes. The other 2.x release notes have no failing doctests.
Activity
JelleZijlstra commentedon Jun 4, 2016
Running
make doctestin the Doc/ repository of master fails on the 2.7 release notes. This patch excludes these files frommake doctest, because it doesn't seem worth it to try to get these running in Python 3.vadmium commentedon Jun 4, 2016
Ignore my message; I was thinking of something different :)
I presume you are running something like the following, which seems to smoke-test the examples in the documentation:
make -C Doc doctest
JelleZijlstra commentedon Jun 4, 2016
Yes, I've been attempting to get that make to fully succeed.
vadmium commentedon Jun 4, 2016
Since I stuck my neck out, I will say that this seems reasonable to me. We could probably still run doctest in the actual 2.7 branch to detect any errors there.
python-dev commentedon Jun 5, 2016
New changeset 70af472451cb by Senthil Kumaran in branch '3.5':
bpo-27202 - Exclude 2.x release notes from python3 make doctests.
https://hg.python.org/cpython/rev/70af472451cb
New changeset 2bb806539ca6 by Senthil Kumaran in branch 'default':
[merge from 3.5] - bpo-27202 - Exclude 2.x release notes from python3 make doctests.
https://hg.python.org/cpython/rev/2bb806539ca6
orsenthil commentedon Jun 5, 2016
Thanks for your contribution, Jelle.
berkerpeksag commentedon Jun 5, 2016
Perhaps it would be better to exclude all files in Doc/whatsnew.
berkerpeksag commentedon Jun 5, 2016
By the way, after this I'm getting the following warnings:
/Users/berkerpeksag/projects/cpython/Doc/whatsnew/index.rst:11: WARNING: toctree contains reference to nonexisting document 'whatsnew/2.7'
/Users/berkerpeksag/projects/cpython/Doc/whatsnew/index.rst:11: WARNING: toctree contains reference to nonexisting document 'whatsnew/2.6'
/Users/berkerpeksag/projects/cpython/Doc/whatsnew/index.rst:11: WARNING: toctree contains reference to nonexisting document 'whatsnew/2.5'
/Users/berkerpeksag/projects/cpython/Doc/whatsnew/index.rst:11: WARNING: toctree contains reference to nonexisting document 'whatsnew/2.4'
/Users/berkerpeksag/projects/cpython/Doc/whatsnew/index.rst:11: WARNING: toctree contains reference to nonexisting document 'whatsnew/2.3'
/Users/berkerpeksag/projects/cpython/Doc/whatsnew/index.rst:11: WARNING: toctree contains reference to nonexisting document 'whatsnew/2.2'
/Users/berkerpeksag/projects/cpython/Doc/whatsnew/index.rst:11: WARNING: toctree contains reference to nonexisting document 'whatsnew/2.1'
/Users/berkerpeksag/projects/cpython/Doc/whatsnew/index.rst:11: WARNING: toctree contains reference to nonexisting document 'whatsnew/2.0'
JelleZijlstra commentedon Jun 5, 2016
Yes, I realized this patch is wrong: it excludes the 2.7 release notes from all make steps, not just
make doctest.The attached patch reverts the conf.py change and instead uses directives to skip most doctests in the 2.7 release notes. The other 2.x release notes have no failing doctests.
python-dev commentedon Jun 5, 2016
New changeset 378c1d09b256 by Senthil Kumaran in branch '3.5':
bpo-27202 - Fix the mistake in changesets 70af472451cb (3.5) and 2bb806539ca6 (3.6)
https://hg.python.org/cpython/rev/378c1d09b256
New changeset 31573473a50e by Senthil Kumaran in branch 'default':
[merge from 3.5] - bpo-27202 - Fix the mistake in changesets 70af472451cb (3.5) and 2bb806539ca6 (3.6)
https://hg.python.org/cpython/rev/31573473a50e
orsenthil commentedon Jun 5, 2016
Addressed the problem with the previous commit.