]> granicus.if.org Git - python/commitdiff
Merged revisions 80000 via svnmerge from
authorStefan Krah <stefan@bytereef.org>
Mon, 12 Apr 2010 15:29:47 +0000 (15:29 +0000)
committerStefan Krah <stefan@bytereef.org>
Mon, 12 Apr 2010 15:29:47 +0000 (15:29 +0000)
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r80000 | stefan.krah | 2010-04-12 17:21:25 +0200 (Mon, 12 Apr 2010) | 3 lines

  Issue #8367: Fix spurious test failure on systems without a sound card.
........

Lib/test/test_winsound.py

index 1ed43c162d2788cde20d45f5b80c52d4e8add776..7858f120e9af52cbb6a6287ea2ee673fd836cbc8 100644 (file)
@@ -191,11 +191,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():