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_ftplib fails with sem_init: Too many open files
Type: resource usage Stage: resolved
Components: Tests Versions: Python 2.7
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: BreamoreBoy, Urs.Traber, vstinner
Priority: normal Keywords: patch

Created on 2014-10-11 12:18 by Urs.Traber, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
test_ftplib.patch Urs.Traber, 2014-10-11 12:18 patch for test_ftplib.py
Messages (3)
msg229077 - (view) Author: Urs Traber (Urs.Traber) Date: 2014-10-11 12:18
same issue as http://bugs.python.org/issue22608

e.g.

test_sanitize (__main__.TestTLS_FTPClassMixin) ... sem_init: Too many open files
ERROR

Fixed by setting the allocated Event objects to None when not needed anymore.
msg238844 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2015-03-21 22:57
It's a simple patch so can we have a formal review please.
msg292991 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2017-05-04 15:17
I didn't see this error recently on any buildbot.

While the patch seems safe, I prefer to not apply it to prevent any kind of regression.
History
Date User Action Args
2022-04-11 14:58:09adminsetgithub: 66800
2017-05-04 15:17:43vstinnersetstatus: open -> closed

nosy: + vstinner
messages: + msg292991

resolution: out of date
stage: resolved
2015-03-21 22:57:55BreamoreBoysetnosy: + BreamoreBoy
messages: + msg238844
2014-10-11 12:18:28Urs.Trabercreate