Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b72ac36

Browse files
committed
Fix some missing/incorrect mlab tests.
1 parent c6dc51e commit b72ac36

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lib/matplotlib/tests/test_mlab.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,8 +1107,8 @@ def test_spectral_helper_raises(self):
11071107
{"y": self.y+1, "mode": "phase"},
11081108
{"mode": "spam"}, # Bad mode.
11091109
{"y": self.y, "sides": "eggs"}, # Bad sides.
1110-
{"NFFT": 10, "noverlap": 20}, # noverlap > NFFT.
1111-
{"y": self.y, "NFFT": 10, "noverlap": 20}, # noverlap == NFFT.
1110+
{"y": self.y, "NFFT": 10, "noverlap": 20}, # noverlap > NFFT.
1111+
{"NFFT": 10, "noverlap": 10}, # noverlap == NFFT.
11121112
{"y": self.y, "NFFT": 10,
11131113
"window": np.ones(9)}, # len(win) != NFFT.
11141114
]:
@@ -1361,6 +1361,7 @@ def test_spectrum(self, kind):
13611361
assert spec.shape == freqs.shape
13621362
if kind == "magnitude":
13631363
self.check_maxfreq(spec, fsp, self.fstims)
1364+
self.check_freqs(spec, freqs, fsp, self.fstims)
13641365

13651366
@pytest.mark.parametrize(
13661367
'kwargs',

0 commit comments

Comments
 (0)