def test_window_bandwidth_missing():
    warnings.resetwarnings()
    with warnings.catch_warnings(record=True) as out:
        x = librosa.filters.window_bandwidth('unknown_window')
        eq_(x, 1)
        assert 0 > len(out)
        assert out[0].category is UserWarning
        assert 'Unknown window function' in str(out[0].message)
dataset/ETHPy150Open bmcfee/librosa/tests/test_filters.py/test_window_bandwidth_missing/swapped operands of `>`