[Biopython-dev] test_PhyloXML.py failing on Windows

Peter biopython at maubp.freeserve.co.uk
Thu Feb 25 14:29:19 UTC 2010


On Wed, Feb 24, 2010 at 5:03 PM, Eric Talevich <eric.talevich at gmail.com> wrote:
>
> Apparently Windows doesn't like renaming a file to replace another existing
> file. To fix this error asap I'll call os.remove before the rename, ...

I had to add other similar check before it would run on my machine.

> but you're right that these tests should be rewritten to use named temp
> files or StringIO. (I needed to trick unittest into re-running the parser
> tests on re-written files and this sufficed last summer)

OK, something for the TODO list. Should we file a bug to remind us?

Peter



More information about the Biopython-dev mailing list