[Python-checkins] python/dist/src/Lib/test test_winsound.py, 1.6, 1.7

tim_one at users.sourceforge.net tim_one at users.sourceforge.net
Mon Sep 22 14:38:55 EDT 2003


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv24942/Lib/test

Modified Files:
	test_winsound.py 
Log Message:
PlaySoundTest.test_alias_fallback():  Disabled this test, and explained
why in a new comment.  My home Win98SE box is one of the "real systems"
alluded to (my system "default sound" appears to have vanished sometime
in the last month, that's certainly not a Python bug, and the MS
PlaySound docs are correct in their explanation of what happens then).

Bugfix candidate.  If someone can still sneak it into 2.3.1, that would
be good.


Index: test_winsound.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_winsound.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** test_winsound.py	30 Jun 2003 11:57:52 -0000	1.6
--- test_winsound.py	22 Sep 2003 18:38:53 -0000	1.7
***************
*** 72,76 ****
  
      def test_alias_fallback(self):
!         winsound.PlaySound('!"$%&/(#+*', winsound.SND_ALIAS)
  
      def test_alias_nofallback(self):
--- 72,87 ----
  
      def test_alias_fallback(self):
!         # This test can't be expected to work on all systems.  The MS
!         # PlaySound() docs say:
!         #
!         #     If it cannot find the specified sound, PlaySound uses the
!         #     default system event sound entry instead.  If the function
!         #     can find neither the system default entry nor the default
!         #     sound, it makes no sound and returns FALSE.
!         #
!         # It's known to return FALSE on some real systems.
! 
!         # winsound.PlaySound('!"$%&/(#+*', winsound.SND_ALIAS)
!         return
  
      def test_alias_nofallback(self):





More information about the Python-checkins mailing list