[Python-modules-commits] [m2crypto] 19/20: add skip-test_urllib.patch

Daniel Stender stender at moszumanska.debian.org
Mon Nov 6 20:06:43 UTC 2017


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

stender pushed a commit to branch debian/master
in repository m2crypto.

commit 2bcb7f6c544e660e74f79e56878fc2480826c0b1
Author: Daniel Stender <stender at debian.org>
Date:   Mon Nov 6 20:58:14 2017 +0100

    add skip-test_urllib.patch
---
 debian/changelog                      |  4 +++-
 debian/patches/series                 |  1 +
 debian/patches/skip-test_urllib.patch | 15 +++++++++++++++
 debian/rules                          |  3 +--
 4 files changed, 20 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index ba6b0a6..7f6385e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -21,6 +21,7 @@ m2crypto (0.27.0-1) UNRELEASED; urgency=medium
     + add Matěj Cepl to copyright holders.
   * deb/rules:
     + use PYBUILD_AFTER_BUILD to cp binding inplace for tests.
+    + remove failsafe from tests.
     + shorten override for dh_auto_test, run tests from $(CURDIR).
   * tarball now ships with sphinx docs:
     + add override for dh_auto_install running sphinx-build in deb/rules.
@@ -31,8 +32,9 @@ m2crypto (0.27.0-1) UNRELEASED; urgency=medium
     + add prebuild doc/html to Files-Excluded in deb/copyright.
     + update existing doc-base files in deb/ for new folder.
     + add deb/python-m2crypto.doc-base.
+  * add skip-test_urllib.patch.
 
- -- Daniel Stender <stender at debian.org>  Mon, 06 Nov 2017 20:37:51 +0100
+ -- Daniel Stender <stender at debian.org>  Mon, 06 Nov 2017 20:54:48 +0100
 
 m2crypto (0.24.0-2) unstable; urgency=medium
 
diff --git a/debian/patches/series b/debian/patches/series
index 003a513..1599419 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 0001-import-inspect-in-urllib-2.patch
+skip-test_urllib.patch
diff --git a/debian/patches/skip-test_urllib.patch b/debian/patches/skip-test_urllib.patch
new file mode 100644
index 0000000..c488712
--- /dev/null
+++ b/debian/patches/skip-test_urllib.patch
@@ -0,0 +1,15 @@
+Description: skip test_urllib to prevent build break with IOError Connection refused
+Author: Daniel Stender <stender at debian.org>
+Forwarded: no-needed
+Last-Update: 2017-11-06
+
+--- a/tests/test_ssl.py
++++ b/tests/test_ssl.py
+@@ -825,6 +825,7 @@
+ 
+ class UrllibSSLClientTestCase(BaseSSLClientTestCase):
+ 
++    @unittest.skip('no net connection available during build')
+     def test_urllib(self):
+         pid = self.start_server(self.args)
+         try:
diff --git a/debian/rules b/debian/rules
index a659854..0f0d26b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,8 +11,7 @@ export PYBUILD_AFTER_BUILD=cp {build_dir}/M2Crypto/_m2crypto.so M2Crypto/
 	dh $@ --with python2,sphinxdoc --buildsystem=pybuild
 
 override_dh_auto_test:
-	PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="{interpreter} -Wd -m pytest -v -rs" dh_auto_test || true
-	# temporarily failsafed, some open issues
+	PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="{interpreter} -Wd -m pytest -v -rs" dh_auto_test
 
 override_dh_auto_install:
 	dh_auto_install

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/m2crypto.git



More information about the Python-modules-commits mailing list