[Biopython-dev] NCBIXML

Peter biopython at maubp.freeserve.co.uk
Mon Jul 5 16:04:50 UTC 2010


2010/7/5 Tiago Antão <tiagoantao at gmail.com>:
> 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?

I suspect this will be down to the run_test.py magic which attempts
to run the test using the compiled files in the build directory. Have
you run "python3 setup.py install" or not? If the build directory and
the installed Biopython are the same this problem may go away...

Peter




More information about the Biopython-dev mailing list