[Python-modules-commits] [python-pyftpdlib] 01/02: disable tests, that are known to be unstable

Wolfgang Borgert debacle at moszumanska.debian.org
Sat Apr 22 23:28:08 UTC 2017


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

debacle pushed a commit to branch master
in repository python-pyftpdlib.

commit 933255d1940e941b96c47874e391f965bf59b39d
Author: W. Martin Borgert <debacle at debian.org>
Date:   Sun Apr 23 00:24:53 2017 +0200

    disable tests, that are known to be unstable
---
 debian/changelog                            |  1 +
 debian/patches/disable_unstable_tests.patch | 22 ++++++++++++++++++++++
 debian/patches/series                       |  1 +
 debian/rules                                |  2 ++
 4 files changed, 26 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 0ab54d2..c46639f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,6 @@
 python-pyftpdlib (1.5.1-4) UNRELEASED; urgency=medium
 
+  * Disable automatic tests, that are known to be unstable (Closes: #856335)
   * Remove Janos Guljas as maintainer (Closes: #849728)
 
  -- W. Martin Borgert <debacle at debian.org>  Wed, 25 Jan 2017 00:34:58 +0000
diff --git a/debian/patches/disable_unstable_tests.patch b/debian/patches/disable_unstable_tests.patch
new file mode 100644
index 0000000..ee1f493
--- /dev/null
+++ b/debian/patches/disable_unstable_tests.patch
@@ -0,0 +1,22 @@
+Description: Disable automatic tests, that are know to be unstable
+Author: W. Martin Borgert <debacle at debian.org>
+Origin: vendor
+Bug: https://github.com/giampaolo/pyftpdlib/issues/420
+Bug-Debian: https://bugs.debian.org/856335
+Last-Update: 2017-04-23
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/pyftpdlib/test/runner.py
++++ b/pyftpdlib/test/runner.py
+@@ -17,8 +17,10 @@
+ 
+ 
+ def main():
++    excludefiles = os.environ.get("EXCLUDETESTS", "").split()
+     testmodules = [os.path.splitext(x)[0] for x in os.listdir(HERE)
+-                   if x.endswith('.py') and x.startswith('test_')]
++                   if x.endswith('.py') and x.startswith('test_')
++                   and x not in excludefiles]
+     configure_logging()
+     remove_test_files()
+     suite = unittest.TestSuite()
diff --git a/debian/patches/series b/debian/patches/series
index 2df9c79..368a362 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
+disable_unstable_tests.patch
 sslv3_deprecated.patch
diff --git a/debian/rules b/debian/rules
index 709c66c..c618ca0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,7 +7,9 @@ export PYBUILD_NAME=pyftpdlib
 
 override_dh_auto_test:
 ifeq "$(filter nocheck,$(DEB_BUILD_OPTIONS))" ""
+	EXCLUDETESTS="test_functional.py test_functional_ssl.py" \
 	PYTHONPATH=. TRAVIS=1 python pyftpdlib/test/runner.py
+	EXCLUDETESTS="test_functional.py test_functional_ssl.py" \
 	PYTHONPATH=. TRAVIS=1 python3 pyftpdlib/test/runner.py
 endif
 

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



More information about the Python-modules-commits mailing list