python/dist/src/Lib/test test_winsound.py, 1.7, 1.8
Update of /cvsroot/python/python/dist/src/Lib/test In directory sc8-pr-cvs1:/tmp/cvs-serv26128/Lib/test Modified Files: test_winsound.py Log Message: PlaySoundTest.test_alias_nofallback(): Simplified the coding by using assertRaises. NOT a bugfix candidate. Index: test_winsound.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/test/test_winsound.py,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** test_winsound.py 22 Sep 2003 18:38:53 -0000 1.7 --- test_winsound.py 22 Sep 2003 18:41:53 -0000 1.8 *************** *** 86,96 **** def test_alias_nofallback(self): ! try: ! winsound.PlaySound( ! '!"$%&/(#+*', ! winsound.SND_ALIAS | winsound.SND_NODEFAULT ! ) ! except RuntimeError: ! pass def test_stopasync(self): --- 86,91 ---- def test_alias_nofallback(self): ! self.assertRaises(RuntimeError, winsound.PlaySound, '!"$%&/(#+*', ! winsound.SND_ALIAS | winsound.SND_NODEFAULT) def test_stopasync(self):
participants (1)
-
tim_oneļ¼ users.sourceforge.net