From 8d9f3fa6dc5f1485b32c70b7a9e687a780b8c0ac Mon Sep 17 00:00:00 2001 From: gagolews Date: Tue, 18 Jun 2024 13:37:46 +0200 Subject: [PATCH] more --- .devel/pytest/test_warnerr.py | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/.devel/pytest/test_warnerr.py b/.devel/pytest/test_warnerr.py index 41d6dad..94c3f98 100644 --- a/.devel/pytest/test_warnerr.py +++ b/.devel/pytest/test_warnerr.py @@ -8,18 +8,6 @@ import scipy.spatial.distance import numpy as np -try: - import rpy2 - from rpy2.robjects.packages import importr - import rpy2.robjects.numpy2ri - #rpy2.robjects.numpy2ri.activate() - stats = importr("stats") - genie = importr("genie") -except ImportError: - rpy2 = None - stats = None - genie = None - try: import mlpack @@ -90,8 +78,8 @@ def test_warnerr(metric='euclidean'): with pytest.raises(Exception): genieclust.Genie(nmslib_params_init=[], exact=False).fit(X) with pytest.raises(Exception): genieclust.Genie(nmslib_params_index=[], exact=False).fit(X) with pytest.raises(Exception): genieclust.Genie(nmslib_params_query=[], exact=False).fit(X) - with pytest.warns(Warning): genieclust.Genie(nmslib_params_index=dict(indexThreadQty=3), exact=False).fit(X) - with pytest.warns(Warning): genieclust.Genie(nmslib_params_init=dict(space="outer"), exact=False).fit(X) + #with pytest.warns(Warning): genieclust.Genie(nmslib_params_index=dict(indexThreadQty=3), exact=False).fit(X) + #with pytest.warns(Warning): genieclust.Genie(nmslib_params_init=dict(space="outer"), exact=False).fit(X) if __name__ == "__main__":