[issue22390] test.regrtest should complain if a test doesn't remove temporary files

Serhiy Storchaka report at bugs.python.org
Thu Sep 11 19:23:24 CEST 2014


Serhiy Storchaka added the comment:

> I would prefer to fix tests instead of trying to remove arbitrary files. I'm
> not sure that "fn.startswith(support.TESTFN)" check is safe enough.

This allow other tests which leaks the same file to be reported too.

support.TESTFN contains process ID so it is unique enough.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22390>
_______________________________________


More information about the Python-bugs-list mailing list