[Biopython-dev] New test_Phylo.py test on Python 3
Eric Talevich
eric.talevich at gmail.com
Mon Mar 28 14:17:46 UTC 2011
Thanks, Peter. The build bot is pretty handy!
My fix was here, for the public record:
https://github.com/biopython/biopython/commit/8edd552b72a31179cd53eb1493ac5462f7fb8f7c
Lambda expressions like the one in test_Phylo.py are supposed to Just Work,
since manually handling all the edge cases for comparisons is tedious (or
impossible, since try/except statements aren't allowed in Python's lambda
expressions). So I fixed the way Bio.Phylo wraps lambda expressions,
instead.
-E
On Sun, Mar 27, 2011 at 9:32 AM, Peter Cock <p.j.a.cock at googlemail.com>wrote:
> Hi Eric,
>
> You'll need to handle None explicitly for the comparison to pass under
> Python 3 (see below), or you get:
>
> Traceback (most recent call last):
> ...
> File
> "/home/buildslave/BuildBot/lin3264/build/build/py3.2/Tests/test_Phylo.py",
> line 280, in <lambda>
> tree.collapse_all(lambda c: c.branch_length < 0.1)
> TypeError: unorderable types: NoneType() < float()
>
>
> http://testing.open-bio.org/biopython/builders/Linux%2064%20-%20Python%203.2/builds/100/steps/shell/logs/stdio
>
> http://testing.open-bio.org/biopython/builders/Linux%2064%20-%20Python%203.1/builds/179/steps/shell/logs/stdio
>
> Regards,
>
> Peter
>
> ---------- Forwarded message ----------
> From: <biopython-dev at biopython.org>
> Date: Sun, Mar 27, 2011 at 4:12 AM
> Subject: buildbot failure in Biopython on Linux 64 - Python 3.2
> To: p.j.a.cock at googlemail.com, tiagoantao at gmail.com
>
>
> The Buildbot has detected a new failure on builder Linux 64 - Python
> 3.2 while building Biopython.
> Full details are available at:
>
> http://testing.open-bio.org/biopython/builders/Linux%2064%20-%20Python%203.2/builds/100
>
> Buildbot URL: http://testing.open-bio.org/biopython/
>
> Buildslave for this Build: peter_linux64
>
> Build Reason: The Nightly scheduler named 'nightly' triggered this build
> Build Source Stamp: HEAD
> Blamelist:
>
> BUILD FAILED: failed shell
>
> sincerely,
> -The Buildbot
>
More information about the Biopython-dev
mailing list