Skip to content

Commit 72597a3

Browse files
author
Stefan Mitic
committed
test: removed try...except
1 parent b7df1aa commit 72597a3

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/matplotlib/tests/test_axes.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -4168,12 +4168,7 @@ def test_specgram_angle():
41684168

41694169
def test_specgram_fs_none():
41704170
"""Test axes.specgram when Fs is None, should not throw error."""
4171-
4172-
try:
4173-
spec, freqs, t, im = plt.specgram(np.ones(300), Fs=None)
4174-
except Exception as e:
4175-
raise pytest.fail("DID RAISE {0}".format(e))
4176-
4171+
spec, freqs, t, im = plt.specgram(np.ones(300), Fs=None)
41774172
xmin, xmax, freq0, freq1 = im.get_extent()
41784173
assert xmin == 32 and xmax == 96
41794174

0 commit comments

Comments
 (0)