[issue30188] test_nntplib: random EOFError in setUpClass()

STINNER Victor report at bugs.python.org
Thu Apr 27 11:07:08 EDT 2017


New submission from STINNER Victor:

Example of failure:

======================================================================
ERROR: setUpClass (test.test_nntplib.NetworkedNNTPTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/haypo/prog/python/master/Lib/test/test_nntplib.py", line 289, in setUpClass
    cls.server = cls.NNTP_CLASS(cls.NNTP_HOST, timeout=TIMEOUT, usenetrc=False)
  File "/home/haypo/prog/python/master/Lib/nntplib.py", line 1048, in __init__
    readermode, timeout)
  File "/home/haypo/prog/python/master/Lib/nntplib.py", line 330, in __init__
    self.welcome = self._getresp()
  File "/home/haypo/prog/python/master/Lib/nntplib.py", line 449, in _getresp
    resp = self._getline()
  File "/home/haypo/prog/python/master/Lib/nntplib.py", line 437, in _getline
    if not line: raise EOFError
EOFError

----------------------------------------------------------------------

Attached PR catch this error and skips the test.

See also issue #19613 and #19756.

----------
components: Tests
messages: 292450
nosy: haypo
priority: normal
severity: normal
status: open
title: test_nntplib: random EOFError in setUpClass()
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30188>
_______________________________________


More information about the Python-bugs-list mailing list