]> granicus.if.org Git - python/commit
_have_soundcard() is a bad check for winsound.Beep, since you can have a soundcard...
authorSteven Bethard <steven.bethard@gmail.com>
Tue, 18 Mar 2008 19:04:32 +0000 (19:04 +0000)
committerSteven Bethard <steven.bethard@gmail.com>
Tue, 18 Mar 2008 19:04:32 +0000 (19:04 +0000)
commit89065753803cc65eded79ceae04aac6d1b8526a0
tree7137bf68fa7b9e462b6b01a0f921e2f84a903c2c
parentb865f05a0f3eed342c54c4cf55c1281124f15484
_have_soundcard() is a bad check for winsound.Beep, since you can have a soundcard but have the beep driver disabled. This revision basically disables the beep tests by wrapping them in a try/except. The Right Way To Do It is to come up with a _have_enabled_beep_driver() and use that.
Lib/test/test_winsound.py