New submission from Niklas Fiekas <niklas.fie...@backscattering.de>:

Output of attached test case:

non-existing indeed
subprocess-exec-test.py:11: ResourceWarning: unclosed <socket.socket fd=6, 
family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0>
  print("non-existing indeed")
ResourceWarning: Enable tracemalloc to get the object allocation traceback
subprocess-exec-test.py:11: ResourceWarning: unclosed <socket.socket fd=7, 
family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0>
  print("non-existing indeed")
ResourceWarning: Enable tracemalloc to get the object allocation traceback
.
----------------------------------------------------------------------
Ran 1 test in 0.007s

OK

----------
components: asyncio
files: subprocess-exec-test.py
messages: 333501
nosy: asvetlov, niklasf, yselivanov
priority: normal
severity: normal
status: open
title: _UnixSubprocessTransport leaks socket pair if Popen fails
type: resource usage
versions: Python 3.8
Added file: https://bugs.python.org/file48043/subprocess-exec-test.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue35721>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to