summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2016-09-05 22:19:35 (GMT)
committerZachary Ware <zachary.ware@gmail.com>2016-09-05 22:19:35 (GMT)
commit9ed756bc21448bf1f2e1b45e11a523d1ac8c869a (patch)
treefefcfc083c2d6088086ff03c74a9a3edb6faf8b1
parent598894ff48e9c1171cb2ec1c798235826a75c7e0 (diff)
downloadcpython-9ed756bc21448bf1f2e1b45e11a523d1ac8c869a.zip
cpython-9ed756bc21448bf1f2e1b45e11a523d1ac8c869a.tar.gz
cpython-9ed756bc21448bf1f2e1b45e11a523d1ac8c869a.tar.bz2
Issue #27748: strengthen test_alias_nofallback
This test should always raise RuntimeError.
-rw-r--r--Lib/test/test_winsound.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_winsound.py b/Lib/test/test_winsound.py
index 4a8ab7d..1295f3a 100644
--- a/Lib/test/test_winsound.py
+++ b/Lib/test/test_winsound.py
@@ -104,7 +104,10 @@ class PlaySoundTest(unittest.TestCase):
safe_PlaySound('!"$%&/(#+*', winsound.SND_ALIAS)
def test_alias_nofallback(self):
- safe_PlaySound('!"$%&/(#+*', winsound.SND_ALIAS | winsound.SND_NODEFAULT)
+ self.assertRaises(RuntimeError,
+ winsound.PlaySound,
+ '!"$%&/(#+*',
+ winsound.SND_ALIAS | winsound.SND_NODEFAULT)
def test_stopasync(self):
safe_PlaySound(