Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 348c261

Browse files
author
Andrew MacIntyre
committed
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.
1 parent abccf41 commit 348c261

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_ossaudiodev.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def test_setparameters():
7575
# config2 (16-bit, stereo, 44.1kHz) should work on all but the
7676
# most ancient and crufty hardware
7777
config1 = (ossaudiodev.AFMT_U8, 1, 8000)
78-
config2 = (ossaudiodev.AFMT_S16_NE, 2, 44100)
78+
config2 = (AFMT_S16_NE, 2, 44100)
7979

8080
for config in [config1, config2]:
8181
(fmt, channels, rate) = config

0 commit comments

Comments
 (0)