diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-03-23 00:25:54 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-03-23 00:25:54 (GMT) |
commit | 39b3543174b53f907e629df830b192aa77455740 (patch) | |
tree | e849f18fa012b19f70d1e458fecfb427a2d1d163 /Lib/test/test_ossaudiodev.py | |
parent | 4c5475d1967abc63e9f611fbc26e82a2b8e2b9e6 (diff) | |
download | cpython-39b3543174b53f907e629df830b192aa77455740.zip cpython-39b3543174b53f907e629df830b192aa77455740.tar.gz cpython-39b3543174b53f907e629df830b192aa77455740.tar.bz2 |
Issue #8139: ossaudiodev didn't initialize its types properly, therefore
some methods (such as oss_mixer_device.fileno()) were not available.
Initial patch by Bertrand Janin.
Diffstat (limited to 'Lib/test/test_ossaudiodev.py')
-rw-r--r-- | Lib/test/test_ossaudiodev.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Lib/test/test_ossaudiodev.py b/Lib/test/test_ossaudiodev.py index dda6137..055ad6c 100644 --- a/Lib/test/test_ossaudiodev.py +++ b/Lib/test/test_ossaudiodev.py @@ -159,6 +159,15 @@ class OSSAudioDevTests(unittest.TestCase): dsp.close() self.assertTrue(dsp.closed) + def test_mixer_methods(self): + # Issue #8139: ossaudiodev didn't initialize its types properly, + # therefore some methods were unavailable. + mixer = ossaudiodev.openmixer() + try: + self.assertGreaterEqual(mixer.fileno(), 0) + finally: + mixer.close() + def test_main(): try: |