From a6ba325ce616d9c6f9b7329e3f9652ca429b5b01 Mon Sep 17 00:00:00 2001 From: Gard Spreemann Date: Sat, 6 Jun 2020 15:49:36 +0200 Subject: Fix tests. --- debian/tests/control | 3 ++- debian/tests/upstream.py | 4 ++-- 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)) -- cgit v1.2.3