[pyfai] 11/22: still fixing the unittest

Frédéric-Emmanuel Picca picca at moszumanska.debian.org
Wed Jun 8 14:33:56 UTC 2016


This is an automated email from the git hooks/post-receive script.

picca pushed a commit to annotated tag debian/0.12.0+dfsg-1
in repository pyfai.

commit e5246ebb20b0d9982c0b247b9faa5efff3caf0e8
Author: Picca Frédéric-Emmanuel <picca at synchrotron-soleil.fr>
Date:   Wed Jun 8 09:40:35 2016 +0200

    still fixing the unittest
---
 debian/patches/0002-skip-test-if-no-network.patch | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/debian/patches/0002-skip-test-if-no-network.patch b/debian/patches/0002-skip-test-if-no-network.patch
index 92f5ce4..4b8474b 100644
--- a/debian/patches/0002-skip-test-if-no-network.patch
+++ b/debian/patches/0002-skip-test-if-no-network.patch
@@ -1,6 +1,6 @@
 From: =?utf-8?q?Picca_Fr=C3=A9d=C3=A9ric-Emmanuel?=
  <picca at synchrotron-soleil.fr>
-Date: Tue, 7 Jun 2016 16:36:35 +0200
+Date: Wed, 8 Jun 2016 09:40:15 +0200
 Subject: skip test if no network
 
 ---
@@ -8,7 +8,7 @@ Subject: skip test if no network
  1 file changed, 8 insertions(+), 5 deletions(-)
 
 diff --git a/pyFAI/test/utilstest.py b/pyFAI/test/utilstest.py
-index 812a311..ef9ee09 100644
+index 812a311..0d48afe 100644
 --- a/pyFAI/test/utilstest.py
 +++ b/pyFAI/test/utilstest.py
 @@ -50,9 +50,9 @@ import distutils.util
@@ -35,7 +35,7 @@ index 812a311..ef9ee09 100644
 +                              data=None, timeout=cls.timeout).read()
 +                logger.info("Image %s successfully downloaded." % imagename)
 +            except URLError:
-+                unittest.SkipTest("network unreachable.")
++                raise unittest.SkipTest("network unreachable.")
  
              try:
                  with open(fullimagename, "wb") as outfile:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pyfai.git



More information about the debian-science-commits mailing list