[med-svn] [Git][med-team/python-skbio][master] Soften the equality test in NjTests.test_nj_dm1

Michael R. Crusoe gitlab at salsa.debian.org
Fri Feb 28 14:20:26 GMT 2020



Michael R. Crusoe pushed to branch master at Debian Med / python-skbio


Commits:
7e93670b by Michael R. Crusoe at 2020-02-28T15:19:51+01:00
Soften the equality test in NjTests.test_nj_dm1

- - - - -


3 changed files:

- debian/changelog
- debian/patches/series
- + debian/patches/soften_test


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+python-skbio (0.5.5-7) unstable; urgency=medium
+
+  * Team upload.
+  * Soften the equality test in NjTests.test_nj_dm1
+
+ -- Michael R. Crusoe <michael.crusoe at gmail.com>  Fri, 28 Feb 2020 15:18:57 +0100
+
 python-skbio (0.5.5-6) unstable; urgency=medium
 
   * Team upload.


=====================================
debian/patches/series
=====================================
@@ -6,3 +6,4 @@ no_privacy_breach_logo.patch
 ignore_failing_patches.patch
 simde
 pandas_1_0_1
+soften_test


=====================================
debian/patches/soften_test
=====================================
@@ -0,0 +1,13 @@
+Author: Michael R. Crusoe <michael.crusoe at gmail.com>
+Description: 2.220446049250313e-16 is basically zero
+--- 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):



View it on GitLab: https://salsa.debian.org/med-team/python-skbio/-/commit/7e93670b9724e72b793d74044887069f29671dd0

-- 
View it on GitLab: https://salsa.debian.org/med-team/python-skbio/-/commit/7e93670b9724e72b793d74044887069f29671dd0
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20200228/26eef71d/attachment-0001.html>


More information about the debian-med-commit mailing list