[SCM] Python wrapper for the GNU Triangulated Surface library (GTS) branch, master, updated. debian/0.3.1-1-5-g826a4c0

Anton Gladky gladky.anton at gmail.com
Sat Apr 6 19:03:54 UTC 2013


The following commit has been merged in the master branch:
commit 454cae4d652dbba292a32b74cc6143be68159103
Author: Anton Gladky <gladky.anton at gmail.com>
Date:   Sat Apr 6 20:46:43 2013 +0200

    Fix test failure on some archs due to a numerical error.

diff --git a/debian/patches/fix_test_assert.patch b/debian/patches/fix_test_assert.patch
new file mode 100644
index 0000000..406d822
--- /dev/null
+++ b/debian/patches/fix_test_assert.patch
@@ -0,0 +1,34 @@
+Description: fix test failure on some archs due to a numerical error.
+Author: Anton Gladky <gladk at debian.org>
+Last-Update: 2013-04-06
+
+--- pygts-0.3.1.orig/test/test.py
++++ pygts-0.3.1/test/test.py
+@@ -2549,23 +2549,23 @@ class TestSurfaceMethods(unittest.TestCa
+         self.assert_(fabs(stats['face_quality']['min']-1.)<1.e-9)
+         self.assert_(fabs(stats['face_quality']['max']-1.)<1.e-9)
+         self.assert_(fabs(stats['face_quality']['mean']-1.)<1.e-9)
+-        self.assert_(stats['face_quality']['stddev'] == 0.)
++        self.assertAlmostEqual(stats['face_quality']['stddev'], 0.)
+ 
+         self.assert_(fabs(stats['face_area']['min']-2*sqrt(3))<1.e-9)
+         self.assert_(fabs(stats['face_area']['max']-2*sqrt(3))<1.e-9)
+         self.assert_(fabs(stats['face_area']['mean']-2*sqrt(3))<1.e-9)
+-        self.assert_(stats['face_area']['stddev'] == 0.)
++        self.assertAlmostEqual(stats['face_area']['stddev'], 0.)
+ 
+ 
+         self.assert_(fabs(stats['edge_length']['min']-2*sqrt(2))<1.e-9)
+         self.assert_(fabs(stats['edge_length']['max']-2*sqrt(2))<1.e-9)
+         self.assert_(fabs(stats['edge_length']['mean']-2*sqrt(2))<1.e-9)
+-        self.assert_(stats['edge_length']['stddev'] == 0.)
++        self.assertAlmostEqual(stats['edge_length']['stddev'], 0.)
+ 
+         self.assert_(fabs(stats['edge_angle']['min']-atan(2*sqrt(2)))<1.e-9)
+         self.assert_(fabs(stats['edge_angle']['max']-atan(2*sqrt(2)))<1.e-9)
+         self.assert_(fabs(stats['edge_angle']['mean']-atan(2*sqrt(2)))<1.e-9)
+-        self.assert_(stats['edge_angle']['stddev'] == 0.)
++        self.assertAlmostEqual(stats['edge_angle']['stddev'], 0.)
+ 
+         self.assert_(self.closed_surface.is_ok())
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 187ddd4..6426b5e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 fix_examples.patch
 fix_warnings.patch
+fix_test_assert.patch

-- 
Python wrapper for the GNU Triangulated Surface library (GTS)



More information about the debian-science-commits mailing list