Skip to content

Commit 7a9e39d

Browse files
committed
fixed regex pattern to match sklearn output
1 parent 955f5bf commit 7a9e39d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

aeon/anomaly_detection/whole_series/tests/test_rockad.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,10 @@ def test_rockad_incorrect_input():
5959

6060
with pytest.raises(
6161
ValueError,
62-
match="""Expected n_neighbors <= n_samples_fit, but n_neighbors = 100,
63-
n_samples_fit = 10, n_samples = 3""",
62+
match=(
63+
r"Expected n_neighbors <= n_samples_fit, but n_neighbors = 100, "
64+
r"n_samples_fit = 10, n_samples = 3"
65+
),
6466
):
6567
ad = ROCKAD(n_estimators=100, n_kernels=10, n_neighbors=100)
6668
ad.fit(train_series)

0 commit comments

Comments
 (0)