[issue22608] test_socket fails with sem_init: Too many open files

2014-10-11 Thread Urs Traber

New submission from Urs Traber:

test_socke.py does not clean up its event objects used for synchronization. 
This may cause multiple such ERRORs (*):

testLinebufferedWrite (__main__.LineBufferedFileObjectClassTestCase) ... 
sem_init: Too many open files
ERROR

Fixed by setting the allocated Event objects to None at the end of a test (see 
patch attached).



*) e.g. on Digital UNIX with a default of maximal 4096 open files per process

--
components: Tests
files: test_socket.patch
keywords: patch
messages: 229075
nosy: Urs.Traber
priority: normal
severity: normal
status: open
title: test_socket fails with sem_init: Too many open files
type: resource usage
versions: Python 2.7
Added file: http://bugs.python.org/file36878/test_socket.patch

___
Python tracker 
<http://bugs.python.org/issue22608>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22610] test_ftplib fails with sem_init: Too many open files

2014-10-11 Thread Urs Traber

New submission from Urs Traber:

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.

--
components: Tests
files: test_ftplib.patch
keywords: patch
messages: 229077
nosy: Urs.Traber
priority: normal
severity: normal
status: open
title: test_ftplib fails with sem_init: Too many open files
type: resource usage
versions: Python 2.7
Added file: http://bugs.python.org/file36879/test_ftplib.patch

___
Python tracker 
<http://bugs.python.org/issue22610>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com