Skip to content

Commit 1b9fa8c

Browse files
committed
AnimalyDetector: xfail 2 tests for Spark 3.1.3 and 3.2
1 parent 39a179f commit 1b9fa8c

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

tests/test_anomaly_detection.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# -*- coding: utf-8 -*-
2+
import os
23
import unittest
34

45
import pytest
@@ -281,6 +282,13 @@ def HoltWinters(self, analyzer_func, test, df_prev, df_curr=None):
281282
print(df.collect())
282283
return df.select("check_status").collect()
283284

285+
@pytest.mark.xfail(
286+
os.environ.get("SPARK_VERSION") in ["3.1.3", "3.2"],
287+
reason=(
288+
"Not supported in Spark < 3.3: breeze.stats.DescriptiveStats "
289+
"is in unnamed module of loader 'app'"
290+
)
291+
)
284292
def test_BatchNormalStrategy(self):
285293

286294
# Interval is inclusive, so meet the requirements upper value is up to 9
@@ -349,6 +357,13 @@ def test_OnlineNormalStrategy(self):
349357
[Row(check_status="Success")],
350358
)
351359

360+
@pytest.mark.xfail(
361+
os.environ.get("SPARK_VERSION") in ["3.1.3", "3.2"],
362+
reason=(
363+
"Not supported in Spark < 3.3: breeze.stats.DescriptiveStats "
364+
"is in unnamed module of loader 'app'"
365+
)
366+
)
352367
def test_holtWinters(self):
353368
# must have 15 points of data
354369
self.assertEqual(self.HoltWinters(Size(), 1, self.df_1), [Row(check_status="Success")])

0 commit comments

Comments
 (0)