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

Peter Cock p.j.a.cock at googlemail.com
Fri Aug 30 09:14:14 EDT 2013


On Fri, Aug 30, 2013 at 1:58 PM, Sergei Lebedev <superbobry at gmail.com> wrote:
>> (8) Excluding doctests and the Tutorial, use print function
>> rather than print statement. e.g. replace this:
>
> Unfortunately we cannot exclude doctests, because 'from __future__' import
> is module wide, thus the 'doctest.testmod()' will raise a SyntaxError on
> docstrings with print statement.
>
> Sergei

Could you clarify this? Does this cause a problem via:

[Tests]$ python run_tests.py doctest

If you have a small example, copy & paste the "git diff" output here.

Peter


More information about the Biopython-dev mailing list