mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
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.
This commit is contained in:
parent
abccf41a7d
commit
348c261fe6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue