[Python-checkins] cpython (3.5): Issue #27748: strengthen test_alias_nofallback
zach.ware
python-checkins at python.org
Mon Sep 5 18:24:53 EDT 2016
https://hg.python.org/cpython/rev/f845e24d794e
changeset: 103077:f845e24d794e
branch: 3.5
parent: 103067:5c75b315152b
user: Zachary Ware <zachary.ware at gmail.com>
date: Mon Sep 05 17:19:35 2016 -0500
summary:
Issue #27748: strengthen test_alias_nofallback
This test should always raise RuntimeError.
files:
Lib/test/test_winsound.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_winsound.py b/Lib/test/test_winsound.py
--- a/Lib/test/test_winsound.py
+++ b/Lib/test/test_winsound.py
@@ -104,7 +104,10 @@
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(
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list