[Biopython-dev] NCBIXML

Tiago Antão tiagoantao at gmail.com
Mon Jul 5 15:52:40 UTC 2010


Hi,

Finally something less trivial.
NCBIXML test has different results when running (with py3) using
python3 run_tests.py test_NCBIXML.py
or just
python3 test_NCBIXML.py

First fails. Second works.
I' ve discovered that expat parsing is assuming that the encoding is
ascii and sends an error (no encoding is specified in the file),
whereas with utf-8 all is fine.
Passing an encoding to ParserCreate gives no joy.

Maybe somebody has had experiences with test having different outcomes
depending on how they are invoked?

Regards,
Tiago
-- 
"If you want to get laid, go to college.  If you want an education, go
to the library." - Frank Zappa



More information about the Biopython-dev mailing list