summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_winsound.py
Commit message (Collapse)AuthorAgeFilesLines
* Merged revisions 83927 via svnmerge fromAntoine Pitrou2010-08-101-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83927 | antoine.pitrou | 2010-08-10 02:45:32 +0200 (mar., 10 août 2010) | 3 lines test_winsound shouldn't crash when ctypes isn't available ........
* Fix #8618. Ask the Windows mixer API if there are any playback devicesBrian Curtin2010-06-011-0/+6
| | | | configured before attempting to test PlaySound.
* In test_winsound, don't try to import _winreg until after checking that ↵Mark Dickinson2010-04-131-1/+1
| | | | winsound is supported.
* Fix #7306. Add skips to test_winsound when no default sound is configured.Brian Curtin2010-04-131-0/+18
| | | | These failures occur on a Windows Server 2003 machine I test on.
* Issue #8367: Fix spurious test failure on systems without a sound card.Stefan Krah2010-04-121-5/+3
|
* Add import_function method to test.test_support, and modify a number ofR. David Murray2009-03-301-1/+3
| | | | | | | | tests that expect to be skipped if imports fail or functions don't exist to use import_function and import_module. The ultimate goal is to change regrtest to not skip automatically on ImportError. Checking in now to make sure the buldbots don't show any errors on platforms I can't direct test on.
* _have_soundcard() is a bad check for winsound.Beep, since you can have a ↵Steven Bethard2008-03-181-17/+19
| | | | 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.
* The behaviour of winsound.Beep() seems to differ between different versions ↵Trent Nelson2008-03-181-2/+10
| | | | | | | | | of Windows when there's either: a) no sound card entirely b) legacy beep driver has been disabled c) the legacy beep driver has been uninstalled Sometimes RuntimeErrors are raised, sometimes they're not. If _have_soundcard() returns False, don't expect winsound.Beep() to raise a RuntimeError, as this clearly isn't the case, as demonstrated by the various Win32 XP buildbots.
* Get this test to pass even when there is no sound card in the system.Neal Norwitz2008-03-051-4/+16
| | | | Patch from Trent Nelson. (I can't test this.)
* Update test_winsound to check for a configured sound card (using a VBScriptTrent Mick2006-03-161-34/+115
| | | | | helper written by Roger Upole and Mark Hammond) and adjust the expected PlaySoundTest case results accordingly.
* test_alias_nofallback(): Someone broke this test, after 2.3, byTim Peters2004-05-161-2/+18
| | | | | converting it into assertRaises() form. Restored the 2.3 code, and explained why assertRaises() cannot be used instead.
* PlaySoundTest.test_alias_nofallback(): Simplified the coding by usingTim Peters2003-09-221-7/+2
| | | | | | assertRaises. NOT a bugfix candidate.
* PlaySoundTest.test_alias_fallback(): Disabled this test, and explainedTim Peters2003-09-221-1/+12
| | | | | | | | | | 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.
* Don't require that a RuntimeError is raised when playing a secondWalter Dörwald2003-06-301-5/+9
| | | | | | | sound while the first one is still running, as the first one one might already have finished. Fixes part of SF bug #763052.
* Port test_array and test_winsound to PyUnit. Enhance tests for arrayWalter Dörwald2003-05-181-15/+99
| | | | | | (code coverage for Modules/arraymodule.c is at 91%) From SF patch #736962.
* Add test for MessageBeep()Guido van Rossum2003-04-091-1/+13
|
* Make reindent.py happy (convert everything to 4-space indents!).Fred Drake2000-10-231-1/+0
|
* Fix spelling error and remove Windows line endings.Guido van Rossum2000-04-241-1/+1
|
* Added test_winsound by Mark Hammond.Guido van Rossum2000-04-211-0/+7