[Biopython-dev] Post Biopython 1.62 release, clean-up after dropping Python 2.5

Peter Cock p.j.a.cock at googlemail.com
Wed May 7 18:36:20 UTC 2014


On Sat, Aug 31, 2013 at 10:31 AM, Peter Cock <p.j.a.cock at googlemail.com> wrote:
>
> If you'd like to try some context managers for the
> warnings in the unit tests (9), that would be great.

If anyone was wondering, I've just fixed the obvious uses
of the global warnings filter, see this commit and its parents:
https://github.com/biopython/biopython/commit/2e30dc67920532906e5755098c90958a2e257a88

Note the the TODO in test_PDB.py for test_1_warnings
which can now be rewritten to use warnings.catch_warnings
(the old hack was for Python 2.5 support).

This should hopefully mean less harmless warnings
showing up in the full test suite where the default
filters accidentally got removed (which I suspect was
happening sometimes).

Regards,

Peter



More information about the Biopython-dev mailing list