[pygts] 01/02: Fix assertion error in tests.
Anton Gladky
gladk at moszumanska.debian.org
Mon Jul 28 17:12:54 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 f16a012f186fdf80a2f0ceb8891840d69b39dbcd
Author: Anton Gladky <gladk at debian.org>
Date: Mon Jul 28 19:01:33 2014 +0200
Fix assertion error in tests.
---
debian/patches/fix_test_assert.patch | 11 ++++++-----
debian/tests/pygtstest.py | 3 ---
2 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/debian/patches/fix_test_assert.patch b/debian/patches/fix_test_assert.patch
index 5fe5415..a480d0a 100644
--- a/debian/patches/fix_test_assert.patch
+++ b/debian/patches/fix_test_assert.patch
@@ -6,16 +6,17 @@ Index: git/test/test.py
===================================================================
--- git.orig/test/test.py
+++ git/test/test.py
-@@ -1979,7 +1979,7 @@ class TestSurfaceMethods(unittest.TestCa
+@@ -1978,9 +1978,6 @@ class TestSurfaceMethods(unittest.TestCa
+ s1.add(s2)
self.assert_(s1.is_ok())
self.assert_(s1.Nfaces == 4)
- for face in self.closed_surface:
+- 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
+
+@@ -2549,23 +2546,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)
diff --git a/debian/tests/pygtstest.py b/debian/tests/pygtstest.py
index ca636c9..f517b3a 100755
--- a/debian/tests/pygtstest.py
+++ b/debian/tests/pygtstest.py
@@ -1978,9 +1978,6 @@ class TestSurfaceMethods(unittest.TestCase):
s1.add(s2)
self.assert_(s1.is_ok())
self.assert_(s1.Nfaces == 4)
- for face in self.closed_surface:
- self.assertAlmostEqual(face in s1)
-
def test_remove(self):
--
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