From 9aca91d7d73121a73cdf5d742a8b6cae30989f50 Mon Sep 17 00:00:00 2001 From: Stefan Krah Date: Mon, 12 Apr 2010 15:21:25 +0000 Subject: [PATCH] Issue #8367: Fix spurious test failure on systems without a sound card. --- Lib/test/test_winsound.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Lib/test/test_winsound.py b/Lib/test/test_winsound.py index cba6ee6d36..d4fcdcaac7 100644 --- a/Lib/test/test_winsound.py +++ b/Lib/test/test_winsound.py @@ -193,11 +193,9 @@ class PlaySoundTest(unittest.TestCase): pass winsound.PlaySound(None, winsound.SND_PURGE) else: - self.assertRaises( - RuntimeError, - winsound.PlaySound, - None, winsound.SND_PURGE - ) + # Issue 8367: PlaySound(None, winsound.SND_PURGE) + # does not raise on systems without a sound card. + pass def _get_cscript_path(): -- 2.50.1