Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

self.addCleanup(f.close) can not be used if the same file should be opened 
several times in the test. It can not be used also if the file is deleted in 
the test or in tearDown().

----------

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

Reply via email to