[Python-Dev] Doc tests failing for many PRs on GitHub

2020-08-31 Thread Mark Shannon

Hi,

There seems to be something wrong with the doc tests for PRs on Github.

https://github.com/python/cpython/pull/22026/checks?check_run_id=1050881634
https://github.com/python/cpython/pull/22025/checks?check_run_id=1050403463

Anyone know what the issue is?

Cheers,
Mark.

(apologies for the previous empty email)
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/KMXK6BQWQZRR2TGVRLECMR7CUVIVTUMQ/
Code of Conduct: http://python.org/psf/codeofconduct/


[Python-Dev] Doc tests failing for many PRs on GitHub

2020-08-31 Thread Mark Shannon



___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/5LNWMVXD72FBJDNO7GKEF2KVIE4V5BKG/
Code of Conduct: http://python.org/psf/codeofconduct/


Re: [Python-Dev] doc tests failing

2015-11-13 Thread Ethan Furman

On 11/13/2015 07:12 AM, Ethan Furman wrote:
> What am I doing wrong?

On 11/13/2015 07:40 AM, Georg Brandl wrote:
> Running "make doctest" in the first place. The doctests in the core
> docs were not written to support that, and also never updated to do
> so.

On 11/13/2015 07:42 AM, Zachary Ware wrote:
> Expecting it to work :)

On 11/13/2015 07:44 AM, R. David Murray wrote:
> We don't have clean doctests for the docs.  Patches welcome.

Ah, okay, that explains it.  :)  Which means I had tested 'enum.rst' 
manually back when I wrote it, and had forgotten.


Thank you for the reminder!

--
~Ethan~
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] doc tests failing

2015-11-13 Thread Zachary Ware
On Fri, Nov 13, 2015 at 9:12 AM, Ethan Furman  wrote:
> What am I doing wrong?

Expecting it to work :)

`make doctest` is a Sphinx feature, not specific to our docs.  Ideally
someday it should work (and I'll add it to the Docs buildbot), but
nobody has tried to make it work yet.  Making it work might be a good
large-ish project for newer contributors.

-- 
Zach
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] doc tests failing

2015-11-13 Thread R. David Murray
We don't have clean doctests for the docs.  Patches welcome.

At one point I had made the turtle doctests pass (it draws a bunch of
stuff on the screen) because otherwise we don't have very many turtle
tests, but I haven't checked it in a couple years.

Hmm.  We could list making the doc doctests pass as an activity for
beginners in the devguide.

On Fri, 13 Nov 2015 07:12:32 -0800, Ethan Furman  wrote:
> What am I doing wrong?
> 
> I have tried:
> 
> 
> hg update 3.5  # and hg update default
> make distclean && ./configure --with-pydebug && make -j2
> cd Doc
> make doctest
> 
> 
> and in both cases I get page after page of errors.  I have tried 
> installing python-sphinx and python3-sphinx; I have tried adding 
> PYTHON=../python and PYTHON=python3 to the `make doctest` line -- all to 
> no avail.
> 
> Here's a random sample of the errors:
> 
> **
> File "library/shlex.rst", line ?, in default
> Failed example:
>  remote_command
> Exception raised:
>  Traceback (most recent call last):
>File "/usr/lib/python2.7/doctest.py", line 1315, in __run
>  compileflags, 1) in test.globs
>File "", line 1, in 
>  remote_command
>  NameError: name 'remote_command' is not defined
> 
> **
> File "howto/sorting.rst", line ?, in default
> Failed example:
>  sorted([5, 2, 4, 1, 3], cmp=numeric_compare)
> Exception raised:
>  Traceback (most recent call last):
>File "/usr/lib/python2.7/doctest.py", line 1315, in __run
>  compileflags, 1) in test.globs
>File "", line 1, in 
>  sorted([5, 2, 4, 1, 3], cmp=numeric_compare)
>  NameError: name 'numeric_compare' is not defined
> 
> **
> File "library/ipaddress.rst", line ?, in default
> Failed example:
>  n2 = ip_network('192.0.2.1/32')
> Exception raised:
>  Traceback (most recent call last):
>File "/usr/lib/python2.7/doctest.py", line 1315, in __run
>  compileflags, 1) in test.globs
>File "", line 1, in 
>  n2 = ip_network('192.0.2.1/32')
>  NameError: name 'ip_network' is not defined
> 
> --
> ~Ethan~
> ___
> Python-Dev mailing list
> Python-Dev@python.org
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: 
> https://mail.python.org/mailman/options/python-dev/rdmurray%40bitdance.com
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] doc tests failing

2015-11-13 Thread Georg Brandl
On 11/13/2015 04:12 PM, Ethan Furman wrote:
> What am I doing wrong?

Running "make doctest" in the first place. The doctests in the core docs
were not written to support that, and also never updated to do so.

Georg

> I have tried:
> 
> 
> hg update 3.5  # and hg update default
> make distclean && ./configure --with-pydebug && make -j2
> cd Doc
> make doctest
> 
> 
> and in both cases I get page after page of errors.  I have tried 
> installing python-sphinx and python3-sphinx; I have tried adding 
> PYTHON=../python and PYTHON=python3 to the `make doctest` line -- all to 
> no avail.
> 
> Here's a random sample of the errors:
> 
> **
> File "library/shlex.rst", line ?, in default
> Failed example:
>  remote_command
> Exception raised:
>  Traceback (most recent call last):
>File "/usr/lib/python2.7/doctest.py", line 1315, in __run
>  compileflags, 1) in test.globs
>File "", line 1, in 
>  remote_command
>  NameError: name 'remote_command' is not defined
> 
> **
> File "howto/sorting.rst", line ?, in default
> Failed example:
>  sorted([5, 2, 4, 1, 3], cmp=numeric_compare)
> Exception raised:
>  Traceback (most recent call last):
>File "/usr/lib/python2.7/doctest.py", line 1315, in __run
>  compileflags, 1) in test.globs
>File "", line 1, in 
>  sorted([5, 2, 4, 1, 3], cmp=numeric_compare)
>  NameError: name 'numeric_compare' is not defined
> 
> **
> File "library/ipaddress.rst", line ?, in default
> Failed example:
>  n2 = ip_network('192.0.2.1/32')
> Exception raised:
>  Traceback (most recent call last):
>File "/usr/lib/python2.7/doctest.py", line 1315, in __run
>  compileflags, 1) in test.globs
>File "", line 1, in 
>  n2 = ip_network('192.0.2.1/32')
>  NameError: name 'ip_network' is not defined
> 
> --
> ~Ethan~
> 


___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


[Python-Dev] doc tests failing

2015-11-13 Thread Ethan Furman

What am I doing wrong?

I have tried:


hg update 3.5  # and hg update default
make distclean && ./configure --with-pydebug && make -j2
cd Doc
make doctest


and in both cases I get page after page of errors.  I have tried 
installing python-sphinx and python3-sphinx; I have tried adding 
PYTHON=../python and PYTHON=python3 to the `make doctest` line -- all to 
no avail.


Here's a random sample of the errors:

**
File "library/shlex.rst", line ?, in default
Failed example:
remote_command
Exception raised:
Traceback (most recent call last):
  File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
  File "", line 1, in 
remote_command
NameError: name 'remote_command' is not defined

**
File "howto/sorting.rst", line ?, in default
Failed example:
sorted([5, 2, 4, 1, 3], cmp=numeric_compare)
Exception raised:
Traceback (most recent call last):
  File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
  File "", line 1, in 
sorted([5, 2, 4, 1, 3], cmp=numeric_compare)
NameError: name 'numeric_compare' is not defined

**
File "library/ipaddress.rst", line ?, in default
Failed example:
n2 = ip_network('192.0.2.1/32')
Exception raised:
Traceback (most recent call last):
  File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
  File "", line 1, in 
n2 = ip_network('192.0.2.1/32')
NameError: name 'ip_network' is not defined

--
~Ethan~
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com