[New-bugs-announce] [issue22608] test_socket fails with sem_init: Too many open files

Urs Traber report at bugs.python.org
Sat Oct 11 13:23:01 CEST 2014


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 <report at bugs.python.org>
<http://bugs.python.org/issue22608>
_______________________________________


More information about the New-bugs-announce mailing list