This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2020-01-15.10:22:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1579083774.85.0.947952738007.issue39343@roundup.psfhosted.org>
In-reply-to
Content
Should we disable documentation test on nntplib? It's surprising that test_nntplib test on the other Travis CI jobs.

https://travis-ci.org/python/cpython/jobs/637325027

Warning, treated as error:

**********************************************************************

File "library/nntplib.rst", line ?, in default

Failed example:

    s = NNTP('news.gmane.io')

Exception raised:

    Traceback (most recent call last):

      File "/home/travis/build/python/cpython/Lib/doctest.py", line 1329, in __run

        exec(compile(example.source, filename, "single",

      File "<doctest default[0]>", line 1, in <module>

        s = NNTP('news.gmane.io')

      File "/home/travis/build/python/cpython/Lib/nntplib.py", line 1045, in __init__

        self.sock = self._create_socket(timeout)

      File "/home/travis/build/python/cpython/Lib/nntplib.py", line 1062, in _create_socket

        return socket.create_connection((self.host, self.port), timeout)

      File "/home/travis/build/python/cpython/Lib/socket.py", line 843, in create_connection

        raise err

      File "/home/travis/build/python/cpython/Lib/socket.py", line 831, in create_connection

        sock.connect(sa)

    ConnectionRefusedError: [Errno 111] Connection refused
History
Date User Action Args
2020-01-15 10:22:54vstinnersetrecipients: + vstinner
2020-01-15 10:22:54vstinnersetmessageid: <1579083774.85.0.947952738007.issue39343@roundup.psfhosted.org>
2020-01-15 10:22:54vstinnerlinkissue39343 messages
2020-01-15 10:22:53vstinnercreate