Description: Disable automatic tests, that are know to be unstable
Author: Martin <debacle@debian.org>
Origin: vendor
Bug: https://github.com/giampaolo/pyftpdlib/issues/420
Bug-Debian: https://bugs.debian.org/856335
Last-Update: 2022-11-01
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/pyftpdlib/test/runner.py
+++ b/pyftpdlib/test/runner.py
@@ -132,8 +132,10 @@
 def get_suite(name=None):
     suite = unittest.TestSuite()
     if name is None:
+        excludefiles = os.environ.get("EXCLUDETESTS", "").split()
         testmods = [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]
         for tm in testmods:
             # ...so that the full test paths are printed on screen
             tm = "pyftpdlib.test.%s" % tm
