def test_extremes(self):
        if _have_soundcard():
            winsound.Beep(37, 75)
            winsound.Beep(32767, 75)
        else:
            # The behaviour of winsound.Beep() seems to differ between
            # different versions of Windows when there's either a) no
            # sound card entirely, b) legacy beep driver has been disabled,
            # or c) the legacy beep driver has been uninstalled.  Sometimes
            # RuntimeErrors are raised, sometimes they're not.  Meh.
            try:
                winsound.Beep(37, 75)
                winsound.Beep(32767, 75)
            except __HOLE__:
                pass
dataset/ETHPy150Open babble/babble/include/jython/Lib/test/test_winsound.py/BeepTest.test_extremes