Package: python-biopython / 1.68+dfsg-3~bpo8+1

test_phenotype_fit_on_arm64.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: Relax test conditions to ignore rounding differences
 that occure specifically on arm64
 .
 Note: While the issue only was happening on arm64 hardware on Debian
 autobuilders most probably no harm is done to simply apply it for
 all architectures
Bug-Upstream: https://github.com/biopython/biopython/issues/1038
Author: Peter Cock <p.j.a.cock@googlemail.com>
Last-Update: Fri, 20 Jan 2017 07:32:32 -0800

--- a/Tests/test_phenotype_fit.py
+++ b/Tests/test_phenotype_fit.py
@@ -51,7 +51,7 @@ class TestPhenoMicro(unittest.TestCase):
         self.assertEqual(w.model, 'gompertz')
         self.assertAlmostEqual(w.lag, 6.0425868725090357, places=5)
         self.assertAlmostEqual(w.plateau, 188.51404344898586, places=5)
-        self.assertAlmostEqual(w.slope, 48.190618284831132, places=5)
+        self.assertAlmostEqual(w.slope, 48.190618284831132, places=4)
         self.assertAlmostEqual(w.v, 0.10000000000000001, places=5)
         self.assertAlmostEqual(w.y0, 45.879770069807989, places=5)
         self.assertEqual(w.max, 313.0)