[issue43598] test_subprocess logs multiple ResourceWarning warnings

STINNER Victor report at bugs.python.org
Mon Mar 22 20:41:55 EDT 2021


New submission from STINNER Victor <vstinner at python.org>:

$ ./python -m test test_subprocess -v
(...)
test_send_signal_race2 (test.test_subprocess.POSIXProcessTestCase) ... /home/vstinner/python/master/Lib/subprocess.py:1062: ResourceWarning: subprocess 137193 is still running
  _warn("subprocess %s is still running" % self.pid,
ResourceWarning: Enable tracemalloc to get the object allocation traceback
ok

test_pipesize_default (test.test_subprocess.ProcessTestCase) ... /home/vstinner/python/master/Lib/unittest/case.py:549: ResourceWarning: unclosed file <_io.BufferedReader name=8>
  method()
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/home/vstinner/python/master/Lib/unittest/case.py:549: ResourceWarning: unclosed file <_io.BufferedReader name=10>
  method()
ResourceWarning: Enable tracemalloc to get the object allocation traceback
ok

test_pipesize_default (test.test_subprocess.ProcessTestCaseNoPoll) ... /home/vstinner/python/master/Lib/unittest/case.py:549: ResourceWarning: unclosed file <_io.BufferedReader name=8>
  method()
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/home/vstinner/python/master/Lib/unittest/case.py:549: ResourceWarning: unclosed file <_io.BufferedReader name=10>
  method()
ResourceWarning: Enable tracemalloc to get the object allocation traceback
ok
(...)

----------
components: Tests
messages: 389359
nosy: vstinner
priority: normal
severity: normal
status: open
title: test_subprocess logs multiple ResourceWarning warnings
versions: Python 3.10

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43598>
_______________________________________


More information about the Python-bugs-list mailing list