Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=Nonecreated_at=<Date2020-01-15.10:22:54.720>labels= ['tests', '3.9']
title='Travis CI: documentation job fails in library/nntplib.rst with random network issue on news.gmane.io'updated_at=<Date2020-06-01.19:08:06.992>user='https://github.com/vstinner'
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
>>> s = nntplib.NNTP('news.gmane.org')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/corona10/oss/cpython/Lib/nntplib.py", line 1045, in __init__
self.sock = self._create_socket(timeout)
File "/Users/corona10/oss/cpython/Lib/nntplib.py", line 1062, in _create_socket
return socket.create_connection((self.host, self.port), timeout)
File "/Users/corona10/oss/cpython/Lib/socket.py", line 843, in create_connection
raise err
File "/Users/corona10/oss/cpython/Lib/socket.py", line 831, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 61] Connection refused
gmane was down for maybe a day early this week. We should expect this to continue happening on and off, as it has for years (I use it daily). I suggest that we run the test when we can and skip (or connect elsewhere) when we cannot.
try:
s = NNTP('news.gmane.io')
except ConnectionRefusedError as e:
self.skipTest(f'Gmane down: {e}')
Activity
vstinner commented on Jan 15, 2020
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:
Exception raised:
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>corona10 commented on Jan 15, 2020
Same for news.gmane.org
corona10 commented on Jan 15, 2020
I 've checked a few servers list to use.
But I don't know that they are proper to use.
corona10 commented on Jan 15, 2020
But for now on, IMHO skip is better choice.
ned-deily commented on Jan 15, 2020
FYI, gmane.io is down for a server move today. It should be back in service by 2100 GMT.
vstinner commented on Jan 15, 2020
I propose to do nothing and wait. Travis CI is not currently preventing to merge a PR.
ned-deily commented on Jan 15, 2020
I should have checked first. The move was completed ahead of schedule and it's now back in service. The tests should no loner fail.
https://lars.ingebrigtsen.no/2020/01/15/news-gmane-org-is-now-news-gmane-io/
vstinner commented on Jan 17, 2020
It seems like the GMANE server has been fixed.
cjerdonek commented on May 23, 2020
Reopening as this is happening again -- twice for me: https://github.com/python/cpython/pull/20329/checks?check_run_id=701405252#step:7:117
terryjreedy commented on May 29, 2020
gmane was down for maybe a day early this week. We should expect this to continue happening on and off, as it has for years (I use it daily). I suggest that we run the test when we can and skip (or connect elsewhere) when we cannot.
try:
s = NNTP('news.gmane.io')
except ConnectionRefusedError as e:
self.skipTest(f'Gmane down: {e}')
hugovk commented on Apr 11, 2022
Note the nntplib module is deprecated in 3.11 and set for removal in 3.13.
See PEP 594 – Removing dead batteries from the standard library and #91217.
AlexWaygood commented on Apr 12, 2022
Additionally, Travis is no longer used for CPython's CI.
kumaraditya303 commented on Apr 18, 2022
Closed as Travis is no longer used.