From: Andrew MacIntyre Date: Wed, 2 Jul 2003 14:05:08 +0000 (+0000) Subject: On those systems lacking the AFMT_S16_NE symbol, the test was failing X-Git-Tag: v2.3c1~193 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=348c261fe676d7577e240eb5db6c4c0dd07674f0;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Lib/test/test_ossaudiodev.py b/Lib/test/test_ossaudiodev.py index 21aa0ff5fc4c..3067c03de0dd 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