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.

classification
Title: test_ftp_timeout fails with EOFError
Type: behavior Stage: resolved
Components: Tests Versions: Python 3.6, Python 3.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: berker.peksag, python-dev
Priority: normal Keywords: patch

Created on 2016-06-10 20:34 by berker.peksag, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
issue27289.diff berker.peksag, 2016-06-10 20:38 review
Messages (4)
msg268154 - (view) Author: Berker Peksag (berker.peksag) * (Python committer) Date: 2016-06-10 20:34
From http://buildbot.python.org/all/builders/x86-64%20Ubuntu%2015.10%20Skylake%20CPU%203.5/builds/533/steps/test/logs/stdio

======================================================================
ERROR: test_ftp_timeout (test.test_urllib2net.TimeoutTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.5.intel-ubuntu-skylake/build/Lib/urllib/request.py", line 1471, in ftp_open
    fw = self.connect_ftp(user, passwd, host, port, dirs, req.timeout)
  File "/home/buildbot/buildarea/3.5.intel-ubuntu-skylake/build/Lib/urllib/request.py", line 1493, in connect_ftp
    persistent=False)
  File "/home/buildbot/buildarea/3.5.intel-ubuntu-skylake/build/Lib/urllib/request.py", line 2318, in __init__
    self.init()
  File "/home/buildbot/buildarea/3.5.intel-ubuntu-skylake/build/Lib/urllib/request.py", line 2327, in init
    self.ftp.connect(self.host, self.port, self.timeout)
  File "/home/buildbot/buildarea/3.5.intel-ubuntu-skylake/build/Lib/ftplib.py", line 156, in connect
    self.welcome = self.getresp()
  File "/home/buildbot/buildarea/3.5.intel-ubuntu-skylake/build/Lib/ftplib.py", line 235, in getresp
    resp = self.getmultiline()
  File "/home/buildbot/buildarea/3.5.intel-ubuntu-skylake/build/Lib/ftplib.py", line 221, in getmultiline
    line = self.getline()
  File "/home/buildbot/buildarea/3.5.intel-ubuntu-skylake/build/Lib/ftplib.py", line 209, in getline
    raise EOFError
EOFError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.5.intel-ubuntu-skylake/build/Lib/test/test_urllib2net.py", line 323, in test_ftp_timeout
    u = _urlopen_with_retry(self.FTP_HOST, timeout=60)
  File "/home/buildbot/buildarea/3.5.intel-ubuntu-skylake/build/Lib/test/test_urllib2net.py", line 27, in wrapped
    return _retry_thrice(func, exc, *args, **kwargs)
  File "/home/buildbot/buildarea/3.5.intel-ubuntu-skylake/build/Lib/test/test_urllib2net.py", line 23, in _retry_thrice
    raise last_exc
  File "/home/buildbot/buildarea/3.5.intel-ubuntu-skylake/build/Lib/test/test_urllib2net.py", line 19, in _retry_thrice
    return func(*args, **kwargs)
  File "/home/buildbot/buildarea/3.5.intel-ubuntu-skylake/build/Lib/urllib/request.py", line 163, in urlopen
    return opener.open(url, data, timeout)
  File "/home/buildbot/buildarea/3.5.intel-ubuntu-skylake/build/Lib/urllib/request.py", line 466, in open
    response = self._open(req, data)
  File "/home/buildbot/buildarea/3.5.intel-ubuntu-skylake/build/Lib/urllib/request.py", line 484, in _open
    '_open', req)
  File "/home/buildbot/buildarea/3.5.intel-ubuntu-skylake/build/Lib/urllib/request.py", line 444, in _call_chain
    result = func(*args)
  File "/home/buildbot/buildarea/3.5.intel-ubuntu-skylake/build/Lib/urllib/request.py", line 1489, in ftp_open
    raise exc.with_traceback(sys.exc_info()[2])
  File "/home/buildbot/buildarea/3.5.intel-ubuntu-skylake/build/Lib/urllib/request.py", line 1471, in ftp_open
    fw = self.connect_ftp(user, passwd, host, port, dirs, req.timeout)
  File "/home/buildbot/buildarea/3.5.intel-ubuntu-skylake/build/Lib/urllib/request.py", line 1493, in connect_ftp
    persistent=False)
  File "/home/buildbot/buildarea/3.5.intel-ubuntu-skylake/build/Lib/urllib/request.py", line 2318, in __init__
    self.init()
  File "/home/buildbot/buildarea/3.5.intel-ubuntu-skylake/build/Lib/urllib/request.py", line 2327, in init
    self.ftp.connect(self.host, self.port, self.timeout)
  File "/home/buildbot/buildarea/3.5.intel-ubuntu-skylake/build/Lib/ftplib.py", line 156, in connect
    self.welcome = self.getresp()
  File "/home/buildbot/buildarea/3.5.intel-ubuntu-skylake/build/Lib/ftplib.py", line 235, in getresp
    resp = self.getmultiline()
  File "/home/buildbot/buildarea/3.5.intel-ubuntu-skylake/build/Lib/ftplib.py", line 221, in getmultiline
    line = self.getline()
  File "/home/buildbot/buildarea/3.5.intel-ubuntu-skylake/build/Lib/ftplib.py", line 209, in getline
    raise EOFError
urllib.error.URLError: <urlopen error ftp error: EOFError()>
msg268155 - (view) Author: Berker Peksag (berker.peksag) * (Python committer) Date: 2016-06-10 20:38
Here is a patch to skip the test.
msg268366 - (view) Author: Berker Peksag (berker.peksag) * (Python committer) Date: 2016-06-12 11:42
Just saw this again: http://buildbot.python.org/all/builders/x86-64%20Ubuntu%2015.10%20Skylake%20CPU%203.5/builds/543/steps/test/logs/stdio
msg268376 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2016-06-12 13:28
New changeset 2e3a5770e5f6 by Berker Peksag in branch '3.5':
Issue #27289: Prevent test_urllib2net failures due to EOFError raised by ftplib
https://hg.python.org/cpython/rev/2e3a5770e5f6

New changeset fc0e8c7235f1 by Berker Peksag in branch 'default':
Issue #27289: Merge from 3.5
https://hg.python.org/cpython/rev/fc0e8c7235f1
History
Date User Action Args
2022-04-11 14:58:32adminsetgithub: 71476
2016-06-12 13:28:36berker.peksagsetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2016-06-12 13:28:06python-devsetnosy: + python-dev
messages: + msg268376
2016-06-12 11:42:07berker.peksagsetmessages: + msg268366
2016-06-10 20:38:57berker.peksagsetfiles: + issue27289.diff
keywords: + patch
messages: + msg268155

stage: needs patch -> patch review
2016-06-10 20:34:05berker.peksagcreate