def window_bandwidth(window, default=1.0):

    if hasattr(window, '__name__'):
        key = window.__name__
    else:
        key = window

    if key not in WINDOW_BANDWIDTHS:
        warnings.warn("Unknown window function '{:s}'.".format(key))

    return WINDOW_BANDWIDTHS.get(key, default)
C{startTest} wraps its test with the provided adapter.
dataset/ETHPy150Open bmcfee/librosa/librosa/filters.py/window_bandwidth--crossover with--dataset/ETHPy150Open twisted/twisted/twisted/trial/test/test_reporter.py/AdaptedReporterTests.test_startTest