[Biopython-dev] test_Ace, test_Nexus, test_Phd

Michiel de Hoon mjldehoon at yahoo.com
Tue Feb 10 06:25:13 EST 2009


> The test_Nexus tearDown used to make sure the temp output
> files were removed.  This is important on Windows which
> does not do this automatically.  I see you now allocate
> "random" filenames using
> tempfile.NamedTemporaryFile(...) so presumably we would
> need to record these so that the tearDown method knows
> what temp files to remove.

>From reading the Python documentation, the file created by tempfile.NamedTemporaryFile is removed automatically when the file handle is closed, even on Windows.

--Michiel


      


More information about the Biopython-dev mailing list