File: soften_test

package info (click to toggle)
python-skbio 0.5.6-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 17,492 kB
  • sloc: python: 46,829; ansic: 672; makefile: 184; javascript: 50; sh: 19
file content (14 lines) | stat: -rw-r--r-- 644 bytes parent folder | download
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):