diff options
author | Andrew MacIntyre <andymac@bullseye.apana.org.au> | 2003-07-02 14:05:08 (GMT) |
---|---|---|
committer | Andrew MacIntyre <andymac@bullseye.apana.org.au> | 2003-07-02 14:05:08 (GMT) |
commit | 348c261fe676d7577e240eb5db6c4c0dd07674f0 (patch) | |
tree | 1024234708f54d31983b8c4173aa109995194888 /Lib/test/test_ossaudiodev.py | |
parent | abccf41a7d616cc950510ad4a3526b11e012ee24 (diff) | |
download | cpython-348c261fe676d7577e240eb5db6c4c0dd07674f0.zip cpython-348c261fe676d7577e240eb5db6c4c0dd07674f0.tar.gz cpython-348c261fe676d7577e240eb5db6c4c0dd07674f0.tar.bz2 |
On those systems lacking the AFMT_S16_NE symbol, the test was failing
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.
Diffstat (limited to 'Lib/test/test_ossaudiodev.py')
-rw-r--r-- | Lib/test/test_ossaudiodev.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_ossaudiodev.py b/Lib/test/test_ossaudiodev.py index 21aa0ff..3067c03 100644 --- a/Lib/test/test_ossaudiodev.py +++ b/Lib/test/test_ossaudiodev.py @@ -75,7 +75,7 @@ def test_setparameters(): # config2 (16-bit, stereo, 44.1kHz) should work on all but the # most ancient and crufty hardware config1 = (ossaudiodev.AFMT_U8, 1, 8000) - config2 = (ossaudiodev.AFMT_S16_NE, 2, 44100) + config2 = (AFMT_S16_NE, 2, 44100) for config in [config1, config2]: (fmt, channels, rate) = config |