[Biopython-dev] buildbot failure in Biopython on Windows XP - Python 2.6

Eric Talevich eric.talevich at gmail.com
Fri Jun 1 16:21:10 UTC 2012


On Fri, Jun 1, 2012 at 4:50 AM, Peter Cock <p.j.a.cock at googlemail.com>wrote:

> Hi Eric,
>
> Unfortunately your recent commit broke things everywhere except
> Python 2.7 and Python 3.2,
>
> https://github.com/biopython/biopython/commit/94c128bd428cc5d53b50edd1d2e4730ee212f530
>
> ======================================================================
> ERROR: test_root_at_midpoint (test_Phylo.TreeTests)
> Tree.root_at_midpoint: reroot at the tree's midpoint.
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File
> "/home/pjcock/repositories/BuildBot/lin31/build/build/py3.1/Tests/test_Phylo.py",
> line 143, in test_root_at_midpoint
>    delta=orig_tree_len*0.001)
> TypeError: assertAlmostEqual() got an unexpected keyword argument 'delta'
>
> ----------------------------------------------------------------------
>
> Looking at the current documentation (Python 2.7), there is no mention
> that the 'delta' keyword is new:
>
> http://docs.python.org/library/unittest.html#unittest.TestCase.assertAlmostEqual
>
> However, looking at the older documentation the 'delta' keyword
> was not mentioned, so together with the pattern of failures, I infer
> it was new in Python 2.7.
>
> http://docs.python.org/release/2.6.7/library/unittest.html#unittest.TestCase.assertNotAlmostEqual
>
> Can you switch to using the places argument instead?
>
> Peter
>

Ack, this is what I get for using pydoc. It's fixed now:
https://github.com/biopython/biopython/commit/2494c77c064e1076bb38f5e929b9e68eaee4f841



More information about the Biopython-dev mailing list