[pygts] 04/07: Relax assert_ to assertAlmostEqual in test. (Closes: #755313)
Anton Gladky
gladk at moszumanska.debian.org
Wed Jul 23 19:33:30 UTC 2014
This is an automated email from the git hooks/post-receive script.
gladk pushed a commit to branch master
in repository pygts.
commit 38691a89d2b48ca4f6fe2e5ebc98435c747a6361
Author: Anton Gladky <gladk at debian.org>
Date: Wed Jul 23 20:52:02 2014 +0200
Relax assert_ to assertAlmostEqual in test. (Closes: #755313)
---
debian/patches/fix_test_assert.patch | 17 ++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)
diff --git a/debian/patches/fix_test_assert.patch b/debian/patches/fix_test_assert.patch
index 406d822..5fe5415 100644
--- a/debian/patches/fix_test_assert.patch
+++ b/debian/patches/fix_test_assert.patch
@@ -1,9 +1,20 @@
Description: fix test failure on some archs due to a numerical error.
Author: Anton Gladky <gladk at debian.org>
-Last-Update: 2013-04-06
+Last-Update: 2014-07-23
---- pygts-0.3.1.orig/test/test.py
-+++ pygts-0.3.1/test/test.py
+Index: git/test/test.py
+===================================================================
+--- git.orig/test/test.py
++++ git/test/test.py
+@@ -1979,7 +1979,7 @@ class TestSurfaceMethods(unittest.TestCa
+ self.assert_(s1.is_ok())
+ self.assert_(s1.Nfaces == 4)
+ for face in self.closed_surface:
+- self.assert_(face in s1)
++ self.assertAlmostEqual(face in s1)
+
+
+ def test_remove(self):
@@ -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)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pygts.git
More information about the debian-science-commits
mailing list