Skip to content

Commit

Permalink
Temp skip KARCH Python 3.12 Test
Browse files Browse the repository at this point in the history
  • Loading branch information
KulikDM committed Feb 8, 2024
1 parent b784cc1 commit 0485371
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion pythresh/test/test_karch.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
from pyod.models.pca import PCA
from pyod.utils.data import generate_data

from pythresh.thresholds.karch import KARCH
if sys.version_info < (3, 12):
from pythresh.thresholds.karch import KARCH

# temporary solution for relative imports in case pythresh is not installed
# if pythresh is installed, no need to use the following line
Expand All @@ -20,6 +21,7 @@
sys.path.append(path)


@unittest.skipIf(sys.version_info >= (3, 12), reason='Test not compatible with Python 3.12')
class TestKARCH(unittest.TestCase):
def setUp(self):
self.n_train = 200
Expand Down
4 changes: 2 additions & 2 deletions pythresh/test/test_rank.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from pyod.utils.data import generate_data

from pythresh.thresholds.filter import FILTER
from pythresh.thresholds.karch import KARCH
from pythresh.thresholds.mixmod import MIXMOD
from pythresh.thresholds.ocsvm import OCSVM
from pythresh.utils.rank import RANK

Expand All @@ -33,7 +33,7 @@ def setUp(self):
self.clfs = [KNN(), PCA(), IForest()]

self.thres = [FILTER(), self.contamination,
[FILTER(), KARCH(), OCSVM()]]
[FILTER(), MIXMOD(), OCSVM()]]

self.method = ['model', 'native']

Expand Down

0 comments on commit 0485371

Please sign in to comment.