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.

Title: test_ftplib fails with sem_init: Too many open files
Type: resource usage Stage: resolved
Components: Tests Versions: Python 2.7
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.

File name Uploaded Description Edit
test_ftplib.patch Urs.Traber, 2014-10-11 12:18 patch for
Messages (3)
msg229077 - (view) Author: Urs Traber (Urs.Traber) Date: 2014-10-11 12:18
same issue as


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

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.
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