[Biopython-dev] Test files leftovers

Peter Cock p.j.a.cock at googlemail.com
Fri Apr 25 07:15:10 UTC 2014

On Fri, Apr 25, 2014 at 7:27 AM, Manlio Calvi <manlio.calvi at gmail.com> wrote:
> If the problem is delete the files at the end of the tests maybe the
> last test in BWA test suite search for all those files with one or
> more regex and call os.remove() method to delete it, you don't need
> the files after all tests on them runs out.
> Another cleaner way, although need more work, is create a folder test
> inside the BWA test suite and put there the files created, run there
> the tests and then remove the folder at the end, this mean rewrite the
> path to that test folder.
> Manlio

Same problem - ensuring that the folder/files are removed
after all the tests. This is what the Python 2.7+ method
tearDownClass() is for.


More information about the Biopython-dev mailing list