Issue 8367: test_winsound: failure on systems without soundcard (original) (raw)

Got this test failure on Windows/qemu:

====================================================================== FAIL: test_stopasync (main.PlaySoundTest)

Traceback (most recent call last): File "Lib\test\test_winsound.py", line 199, in test_stopasync None, winsound.SND_PURGE AssertionError: RuntimeError not raised

The problem is that PlaySound(None, winsound.SND_PURGE) does not raise on systems without a soundcard. The wrapped C function returns success in this case, so I think it's ok to go along with it and disable this assertion.