Thanks to visit codestin.com Credit goes to github.com
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 17c40aa commit 379d128Copy full SHA for 379d128
1 file changed
lib/matplotlib/tests/test_mlab.py
@@ -2107,6 +2107,7 @@ def test_specgram_phase(self):
2107
def test_specgram_warn_only1seg(self):
2108
"""Warning should be raised if len(x) <= NFFT. """
2109
with warnings.catch_warnings(record=True) as w:
2110
+ warnings.simplefilter("always", category=UserWarning)
2111
mlab.specgram(x=self.y, NFFT=len(self.y), Fs=self.Fs)
2112
assert len(w) == 1
2113
assert issubclass(w[0].category, UserWarning)
0 commit comments