We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af20096 commit af6235bCopy full SHA for af6235b
scipy/signal/tests/test_windows.py
@@ -713,17 +713,17 @@ def test_degenerate(self, xp):
713
assert_raises(ValueError, windows.dpss, -1, 1, 3) # negative M
714
715
@skip_xp_backends(np_only=True)
716
- def test_degenerate_signle_samples()
+ def test_degenerate_signle_samples(self, xp):
717
# Single samples
718
w = windows.dpss(1, 1.)
719
- assert_array_equal(w, [1.])
+ xp_assert_equal(w, [1.])
720
w, ratio = windows.dpss(1, 1., return_ratios=True)
721
722
assert ratio == 1.
723
w, ratio = windows.dpss(1, 1., Kmax=4, return_ratios=True)
724
725
assert isinstance(ratio, np.ndarray)
726
- assert_array_equal(ratio, [1.])
+ xp_assert_equal(ratio, [1.])
727
728
assert_raises(ValueError, windows.dpss, 4, 1.5, -1, xp=xp) # Bad Kmax
729
assert_raises(ValueError, windows.dpss, 4, 1.5, -5, xp=xp)
0 commit comments