]> granicus.if.org Git - python/commitdiff
On those systems lacking the AFMT_S16_NE symbol, the test was failing
authorAndrew MacIntyre <andymac@bullseye.apana.org.au>
Wed, 2 Jul 2003 14:05:08 +0000 (14:05 +0000)
committerAndrew MacIntyre <andymac@bullseye.apana.org.au>
Wed, 2 Jul 2003 14:05:08 +0000 (14:05 +0000)
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.

Lib/test/test_ossaudiodev.py

index 21aa0ff5fc4cd57fcea980511baca8e3898e62fc..3067c03de0dd4ab2c9c34b3cc9c70ab0580bf431 100644 (file)
@@ -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