1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
Author: Michael R. Crusoe <crusoe@debian.org>
Description: 2.220446049250313e-16 is basically zero
Forwarded: https://github.com/biocore/scikit-bio/pull/1709
--- python-skbio.orig/skbio/tree/tests/test_nj.py
+++ python-skbio/skbio/tree/tests/test_nj.py
@@ -80,7 +80,7 @@
self.expected1_str)
# what is the correct way to compare TreeNode objects for equality?
actual_TreeNode = nj(self.dm1)
- self.assertEqual(actual_TreeNode.compare_tip_distances(
+ self.assertAlmostEqual(actual_TreeNode.compare_tip_distances(
self.expected1_TreeNode), 0.0)
def test_nj_dm2(self):
|