[Biopython-dev] test_ParserSupport.py

Peter biopython at maubp.freeserve.co.uk
Tue Sep 23 16:04:54 UTC 2008


The module Bio/ParserSupport.py provides general code for
scanner/consumer parsers (some of which historically have been written
using Martel).  It is used in several pure python parsers (e.g.
Bio.SwissProt).  However, Tests/test_ParserSupport.py (its unit test)
did use Martel explicitly for the EventGenerator class, and would fail
if mxTextTools is not installed.  I have removed this part of the test
in CVS.

Looking over the codebase with grep, EventGenerator is used in:
* Bio.ECell (deprecated in 1.46)
* Bio.Emboss.Primer [STILL CURRENT]
* Bio.IntelliGenetics (deprecated in 1.48)
* Bio.MetaTool (deprecated in 1.48)
* Bio.NBRF (deprecated in 1.48)

It looks like Bio.Emboss.Primer is the only current bit of code using
Bio.ParserSupport.EventGenerator, so it would be nice to still have
this covered by the unit test.  Does anyone fancy re-writing the
EventGenerator part of unit test?  I think this could be done by
creating a simple python Scanner object...

Peter



More information about the Biopython-dev mailing list