Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (2)
Ignore some failing test
· bb94263d
Andreas Tille
authored
Nov 19, 2019
bb94263d
exclude docstring tests - thanks to Peter Cock
· e22d8659
Andreas Tille
authored
Nov 19, 2019
e22d8659
Show whitespace changes
Inline
Side-by-side
debian/patches/5af680b5043c9f160a19e4bb0deab0ccc271280d.patch
0 → 100644
View file @
e22d8659
From 5af680b5043c9f160a19e4bb0deab0ccc271280d Mon Sep 17 00:00:00 2001
From: Peter Cock <p.j.a.cock@googlemail.com>
Date: Tue, 19 Nov 2019 09:59:16 +0000
Subject: [PATCH] Ignore C modules with no docstrings
Does not work as expected
---
Tests/run_tests.py | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/Tests/run_tests.py b/Tests/run_tests.py
index 15503f65d5..084df08afc 100644
--- a/Tests/run_tests.py
+++ b/Tests/run_tests.py
@@ -358,6 +358,15 @@
def runTest(self, name):
except MissingPythonDependencyError:
sys.stderr.write("skipped, missing Python dependency\n")
return True
+ except ValueError as e:
+ if str(e).startswith("module ") and str(e).endswith("has no docstrings"):
+ # Seen with some C modules via Debian build testing
+ sys.stderr.write("skipped, has no docstrings\n")
+ return True
+ sys.stderr.write("FAIL, ValueError\n")
+ result.stream.write("ERROR while importing %s: %s\n" % (name, e))
+ result.printErrors()
+ return False
except ImportError as e:
sys.stderr.write("FAIL, ImportError\n")
result.stream.write("ERROR while importing %s: %s\n" % (name, e))
debian/patches/exclude_docstring_tests.patch
0 → 100644
View file @
e22d8659
From: Peter Cock <p.j.a.cock@googlemail.com>
Last-Update: Tue, 19 Nov 2019 10:03:25 +0000
Bug-Debian: https://bugs.debian.org/944242
Description: Test issues with BioPython 1.75
--- a/Tests/run_tests.py
+++ b/Tests/run_tests.py
@@ -148,9 +148,9 @@
except ImportError:
# Skip Bio.Seq doctest under Python 2, see http://bugs.python.org/issue7490
# Can't easily write exceptions with consistent class name in python 2 and 3
-if sys.version_info[0] == 2:
- EXCLUDE_DOCTEST_MODULES.append("Bio.Seq")
- EXCLUDE_DOCTEST_MODULES.append("Bio.Phylo")
+#if sys.version_info[0] == 2:
+# EXCLUDE_DOCTEST_MODULES.append("Bio.Seq")
+# EXCLUDE_DOCTEST_MODULES.append("Bio.Phylo")
def find_modules(path):
debian/patches/series
View file @
e22d8659
...
...
@@ -2,3 +2,5 @@ remove_mathml-qname.patch
privacy_breach.patch
reportlab3.5.patch
python_3.8_iteration_fix.patch
# 5af680b5043c9f160a19e4bb0deab0ccc271280d.patch
exclude_docstring_tests.patch