Skip to content

Commit af6235b

Browse files
committed
TST: signal: update to dpss updates
1 parent af20096 commit af6235b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

scipy/signal/tests/test_windows.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -713,17 +713,17 @@ def test_degenerate(self, xp):
713713
assert_raises(ValueError, windows.dpss, -1, 1, 3) # negative M
714714

715715
@skip_xp_backends(np_only=True)
716-
def test_degenerate_signle_samples()
716+
def test_degenerate_signle_samples(self, xp):
717717
# Single samples
718718
w = windows.dpss(1, 1.)
719-
assert_array_equal(w, [1.])
719+
xp_assert_equal(w, [1.])
720720
w, ratio = windows.dpss(1, 1., return_ratios=True)
721-
assert_array_equal(w, [1.])
721+
xp_assert_equal(w, [1.])
722722
assert ratio == 1.
723723
w, ratio = windows.dpss(1, 1., Kmax=4, return_ratios=True)
724-
assert_array_equal(w, [1.])
724+
xp_assert_equal(w, [1.])
725725
assert isinstance(ratio, np.ndarray)
726-
assert_array_equal(ratio, [1.])
726+
xp_assert_equal(ratio, [1.])
727727

728728
assert_raises(ValueError, windows.dpss, 4, 1.5, -1, xp=xp) # Bad Kmax
729729
assert_raises(ValueError, windows.dpss, 4, 1.5, -5, xp=xp)

0 commit comments

Comments
 (0)