Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
gagolews committed Jun 18, 2024
1 parent dd08e73 commit 8d9f3fa
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions .devel/pytest/test_warnerr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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__":
Expand Down

0 comments on commit 8d9f3fa

Please sign in to comment.