[pygts] 01/02: Fix autopkgtest.

Anton Gladky gladk at moszumanska.debian.org
Sat Jul 26 13:45:00 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 e62b55161429b2483348c9e50d73d2c5f989a9ed
Author: Anton Gladky <gladk at debian.org>
Date:   Sat Jul 26 13:01:19 2014 +0200

    Fix autopkgtest.
---
 debian/tests/1/control    | 40 ----------------------------------------
 debian/tests/pygtstest.py | 12 ++++++------
 2 files changed, 6 insertions(+), 46 deletions(-)

diff --git a/debian/tests/1/control b/debian/tests/1/control
deleted file mode 100644
index 6079dca..0000000
--- a/debian/tests/1/control
+++ /dev/null
@@ -1,40 +0,0 @@
-Source: minieigen
-Priority: optional
-Maintainer: Debian Science Maintainers <debian-science-maintainers at lists.alioth.debian.org>
-Uploaders:
- Václav Šmilauer <eu at doxos.eu>,
- Anton Gladky <gladk at debian.org>
-Build-Depends:
- debhelper (>= 9),
- libboost-python-dev,
- libdouble-conversion-dev,
- libeigen3-dev,
- python-dev (>=2.6.6-3~),
- python-sphinx (>= 1.0.7+dfsg)
-X-Python-Version: >= 2.7
-Standards-Version: 3.9.5
-Section: libs
-Homepage: http://www.launchpad.net/minieigen
-Vcs-Git: git://anonscm.debian.org/debian-science/packages/minieigen.git
-Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-science/packages/minieigen.git
-XS-Testsuite: autopkgtest
-
-Package: python-minieigen
-Section: python
-Architecture: any
-Depends:
- python (<<2.8),
- python (>= 2.7),
- ${misc:Depends},
- ${python:Depends},
- ${shlibs:Depends},
- ${sphinxdoc:Depends}
-Recommends:
- libeigen3-dev
-Description: Small boost::python wrapper of parts of the Eigen library
- Small wrapper for core parts of Eigen, c++ library for linear algebra.
- It is mainly useful for inspecting c++ code which already uses eigen and
- boost::python. Supported types are Vectors (2,3,6 and dynamic-sized with
- integer and floating-point values), Matrices (3x3, 6x6 and dynamic-sized
- with floating-point values) and Quaternions. Numerous methods are wrapped
- and the original API of Eigen is followed.
diff --git a/debian/tests/pygtstest.py b/debian/tests/pygtstest.py
index d91a107..ca636c9 100755
--- a/debian/tests/pygtstest.py
+++ b/debian/tests/pygtstest.py
@@ -1979,7 +1979,7 @@ class TestSurfaceMethods(unittest.TestCase):
         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.TestCase):
         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())
 
@@ -3207,7 +3207,7 @@ if __name__ == '__main__':
     for test in tests:
         suite.addTest(unittest.makeSuite(test))
 
-    result = unittest.TextTestRunner(stream=sys.stdout,verbosity=2).run(suite)
+    result = unittest.TextTestRunner(verbosity=2).run(suite)
 
     Nerrors = len(result.errors)
     Nfailures = len(result.failures)

-- 
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