Commit bb94263d authored by Andreas Tille's avatar Andreas Tille
Browse files

Ignore some failing test

parent 3dbc4114
Loading
Loading
Loading
Loading
+29 −0
Original line number Diff line number Diff line
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

---
 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))
+1 −0
Original line number Diff line number Diff line
@@ -2,3 +2,4 @@ remove_mathml-qname.patch
privacy_breach.patch
reportlab3.5.patch
python_3.8_iteration_fix.patch
5af680b5043c9f160a19e4bb0deab0ccc271280d.patch