[Python-checkins] cpython (2.7): 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/6137d0ed0a15
changeset: 103076:6137d0ed0a15
branch: 2.7
parent: 103069:14b611ddaabe
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
@@ -103,7 +103,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