summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ossaudiodev.py
Commit message (Collapse)AuthorAgeFilesLines
* Bug 7755: audiotest.au is arguably copyrighted material, but definitely makesBarry Warsaw2010-05-051-1/+1
| | | | | Debian unhappy. The actual contents of the audio clip are unimportant, so replace it with something that we know is okay. Guido likes woodpeckers.
* #7092: Silence more py3k warnings. Patch by Florent Xicluna.Ezio Melotti2010-02-031-3/+5
|
* Reverting the Revision: 77368. I committed Flox's big patch for tests bySenthil Kumaran2010-01-081-1/+1
| | | | mistake. ( It may come in for sure tough)
* Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. ↵Senthil Kumaran2010-01-081-1/+1
| | | | Patch by flox
* convert usage of fail* to assert*Benjamin Peterson2009-06-301-4/+4
|
* Change more tests to use import_module for the modules thatR. David Murray2009-03-301-1/+2
| | | | | should cause tests to be skipped. Also rename import_function to the more descriptive get_attribute and add a docstring.
* fix incorrect auto-translation of TestSkipped -> unittest.SkipTestBenjamin Peterson2009-03-261-3/+3
|
* remove test_support.TestSkipped and just use unittest.SkipTestBenjamin Peterson2009-03-261-3/+3
|
* Make test_ossaudiodev work.Antoine Pitrou2008-08-171-2/+2
|
* Deprecate the sunaudio module for removal in Python 3.0. The sunau module ↵Brett Cannon2008-07-181-9/+10
| | | | can provide similar functionality.
* Patch #2167 from calvin: Remove unused importsChristian Heimes2008-02-231-4/+1
|
* Catch IOError for when the device file doesn't exist or the user doesn't haveNeal Norwitz2007-08-261-1/+1
| | | | permission to write to the device.
* Catch the correct errors.Georg Brandl2007-08-241-1/+1
|
* Convert test_linuxaudiodev to unittest. Fix a wrong finally clause in ↵Georg Brandl2007-08-241-2/+1
| | | | test_ossaudiodev.
* Remove output file for test_ossaudiodev, also properly close the dsp object.Georg Brandl2007-08-241-3/+3
|
* Fix an issue related to the unittest conversion.Collin Winter2007-04-251-0/+6
|
* Convert test_ossaudiodev to use unittest.Collin Winter2007-04-251-120/+125
|
* Fix a bug in the messages for an assert failure where not enough arguments ↵Brett Cannon2006-07-251-2/+2
| | | | | | to a string were being converted in the format.
* Don't use standard assert: want tests to fail even when run with -O.Greg Ward2006-07-251-15/+17
| | | | Delete cruft.
* Be a lot smarter about whether this test passes: instead of assumingGreg Ward2006-07-231-2/+13
| | | | | | | that a 2.93 sec audio file will always take 3.1 sec (as it did on the hardware I had when I first wrote the test), expect that it will take 2.93 sec +/- 10%, and only fail if it's outside of that range. Compute the expected
* If the audio file does not exist, the test should be skipped. Will backport.Neal Norwitz2006-01-051-1/+1
|
* SF #818006: merge from release24-maint branch: add useful read-onlyGreg Ward2005-03-071-4/+30
| | | | attributes to oss_audio_device object: 'closed', 'name', and 'mode'.
* On those systems lacking the AFMT_S16_NE symbol, the test was failingAndrew MacIntyre2003-07-021-1/+1
| | | | | | | because it was still looking in the ossaudiodev module namespace for this symbol. As the symbol has already been rebound as a global, use that instead.
* Factor endian-ness check out of play_sound_file(), and fixGreg Ward2003-06-031-7/+12
| | | | | test_setparameters() to use it -- don't assume AFMT_S16_NE is always defined!
* Renamed test_errors() to test_setparameters() and completely rewrote itGreg Ward2003-05-291-30/+54
| | | | | | | to test the new setparameters() interface. Modified play_sound_file() to print the elapsed time taken to play the test sample (to the nearest 0.1 sec).
* Order and number of arguments to setparameters() has changed.Greg Ward2003-05-291-24/+23
| | | | Rename 'a' (the audio device) to 'dsp' everywhere.
* - The audio driver tests (test_ossaudiodev.py andGuido van Rossum2003-02-141-0/+3
| | | | | | | test_linuxaudiodev.py) are no longer run by default. This is because they don't always work, depending on your hardware and software. To run these tests, you must use an invocation like ./python Lib/test/regrtest.py -u audio test_ossaudiodev
* - be explicit: audio data files should be opened in binary modeFred Drake2003-01-081-2/+2
| | | | | - ossaudiodev.open() raises IOError, not ossaudiodev.error, for cases which get mapped to TestSkipped
* Aesthetic tweakery: factor read_sound_file() out of play_sound_file().Greg Ward2002-12-101-5/+9
|
* Initial revision is rev 1.8 of test_linuxaudiodev.py, withGreg Ward2002-12-101-0/+89
the obvious s/linuxaudiodev/ossaudiodev/ change made.