[Biopython-dev] Python 3 status (ignoring numpy and our C code)

Peter biopython at maubp.freeserve.co.uk
Wed Jul 28 14:38:41 UTC 2010


One other outstanding test failure (which I thought I'd fixed, but in doing
so broke Python 2) is the Bio.Seq doctests which include exceptions.

This is a known issue due to a change in the traceback for Python 2.7
and Python 3 to include the exception module name, making it
difficult to write doctests with exceptions which also pass on both
Python 2 and 3. This seems to have been fixed in Python 2.7, while
there will be a work around available in Python 3.2 (but apparently
not in Python 3.0 or 3.1) via doctest.IGNORE_EXCEPTION_DETAIL,
see: http://bugs.python.org/issue7490

For now I have taken the pragmatic choice of skipping the Bio.Seq
doctest under Python 3.1

Peter



More information about the Biopython-dev mailing list