Skip to content

Commit

Permalink
test_Phylo: replace 'delta' kwarg w/ positions
Browse files Browse the repository at this point in the history
Apparently the delta arg to assertAlmostEqual was secretly introduced in Py2.7.
  • Loading branch information
etal committed Jun 1, 2012
1 parent 102189c commit 2494c77
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Tests/test_Phylo.py
Expand Up @@ -138,9 +138,8 @@ def test_root_at_midpoint(self):
key=lambda kv: kv[1])
deep_tip_1, deep_dist_1 = max(tree.clade[1].depths().iteritems(),
key=lambda kv: kv[1])
self.assertAlmostEqual(deep_dist_0, deep_dist_1,
# XXX Rounding errors accumulate?
delta=orig_tree_len*0.001)
# XXX Rounding errors accumulate?
self.assertAlmostEqual(deep_dist_0, deep_dist_1, 1)

# Magic method
def test_str(self):
Expand Down

0 comments on commit 2494c77

Please sign in to comment.