[Biopython-dev] run_tests.py rewrite

Michiel de Hoon mjldehoon at yahoo.com
Fri Feb 13 21:14:27 EST 2009


Currently, Numpy doesn't seem to work with python < 2.4, so for reliability maybe Biopython also should require python >= 2.4.

--Michiel


--- On Fri, 2/13/09, Peter <biopython at maubp.freeserve.co.uk> wrote:

> From: Peter <biopython at maubp.freeserve.co.uk>
> Subject: Re: [Biopython-dev] run_tests.py rewrite
> To: mjldehoon at yahoo.com
> Cc: biopython-dev at biopython.org
> Date: Friday, February 13, 2009, 10:48 AM
> On Wed, Feb 4, 2009 at 1:14 PM, Peter
> <biopython at maubp.freeserve.co.uk> wrote:
> > It look a little while to show up in CVS for me, but
> I've got it now.
> > That seems to solve the problem neatly - and
> you've even managed
> > to capture the stack trace elegantly, something I
> hadn't worked out how to do.
> >
> > Nice :)
> 
> Unfortunately, the traceback.format_exc() function you used
> to capture
> the stack trace for print out is Python 2.4+ only[1].  This
> means if
> one of the print-and-compare tests fails with an exception
> on Python
> 2.3, then run_tests.py will fall over.  I've checked in
> a simple fix
> to use the exception text instead - I'm sure something
> more useful
> could be done for Python 2.3, but we'll be dropping
> support for this
> fairly soon anyway.
> 
> This was failing for me on a "known failure",
> test_Clustalw_tool.py on
> Windows Python 2.3, where some filenames with spaces just
> won't work
> without the subprocess module (Python 2.4+ only).  I
> don't think this
> can be avoided, so I've updated test_Clustalw_tool.py
> to skip this bit
> in future.
> 
> Peter
> 
> [1] See http://docs.python.org/library/traceback.html


      


More information about the Biopython-dev mailing list