summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorGard Spreemann <gspr@nonempty.org>2020-06-06 15:49:36 +0200
committerGard Spreemann <gspr@nonempty.org>2020-06-06 15:49:36 +0200
commita6ba325ce616d9c6f9b7329e3f9652ca429b5b01 (patch)
tree6530c92e6c0b071c672e31d5ad00f6ba30ff7646 /debian
parent284e8a6a2024417ab0fbcdabd06f58beb90ba227 (diff)
Diffstat (limited to 'debian')
-rw-r--r--debian/tests/control3
-rw-r--r--debian/tests/upstream.py4
2 files changed, 4 insertions, 3 deletions
diff --git a/debian/tests/control b/debian/tests/control
index 7ba89613..0502c5b6 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,2 +1,3 @@
Tests: python-upstream.sh
-Depends: python3-all, python3-gudhi, python3-pytest, python3-scipy
+Depends: python3-all, python3-gudhi, python3-pytest, python3-scipy, python3-sklearn
+Restrictions: allow-stderr \ No newline at end of file
diff --git a/debian/tests/upstream.py b/debian/tests/upstream.py
index a1b7af1b..feadfbd9 100644
--- a/debian/tests/upstream.py
+++ b/debian/tests/upstream.py
@@ -2,7 +2,7 @@ import importlib
import os
import sys
-blacklist = {"test_wasserstein_distance", "test_wasserstein_barycenter"}
+blacklist = {"test_wasserstein_distance", "test_wasserstein_barycenter", "test_knn", "test_subsampling", "test_representations", "test_dtm"}
testdir = sys.argv[1]
sys.path.append(testdir)
@@ -11,7 +11,7 @@ results = []
with os.scandir(testdir) as it:
for entry in it:
if entry.is_file() and entry.name.startswith("test_") and entry.name.endswith(".py"):
- name = entry.name.rstrip(".py")
+ name = entry.name[:-3]
if name in blacklist:
print("Skipping tests in %s due to blacklist." %(name))