[Biopython-dev] tabs in doctest results?
Peter Cock
p.j.a.cock at googlemail.com
Tue Dec 8 14:37:48 UTC 2015
On Tue, Dec 8, 2015 at 3:12 AM, Vincent Davis <vincent at vincentdavis.net> wrote:
>
> Just an FYI,
> doctest has an option NORMALIZE_WHITESPACE
> https://docs.python.org/3.5/library/doctest.html#doctest.NORMALIZE_WHITESPACE
> "
> When specified, all sequences of whitespace (blanks and newlines) are
> treated as equal. Any sequence of whitespace within the expected output will
> match any sequence of whitespace within the actual output. By default,
> whitespace must match exactly. NORMALIZE_WHITESPACE is especially useful
> when a line of expected output is very long, and you want to wrap it across
> multiple lines in your source.
> "
>
> Vincent Davis
> 720-301-3003
That could be useful - there are a number of doctests in the code and
the tutorial which are overly long... and it's there on Python 2.6 too :)
Peter
More information about the Biopython-dev
mailing list