[issue13222] Erroneous unclosed file warning

2011-10-19 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Indeed you were right. Thanks. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue13222] Erroneous unclosed file warning

2011-10-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Since the "name" is 7, it's certainly another file than the one opened in: f = open("/proc/%s/cmdline" % self.pid) It could be that you called open on the result of os.pipe(), or perhaps you used a subprocess and didn't call communicate() or close() on

[issue13222] Erroneous unclosed file warning

2011-10-19 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : /opt/python3.2/lib/python3.2/site-packages/psutil/_pslinux.py:389: ResourceWarning: unclosed file <_io.FileIO name=7 mode='rb'> return [x for x in f.read().split('\x00') if x] I get this while running tests. The method in question is defined as such: