Merged revisions 79317 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r79317 | antoine.pitrou | 2010-03-23 01:25:54 +0100 (mar., 23 mars 2010) | 5 lines

  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.
........
This commit is contained in:
Antoine Pitrou 2010-03-23 00:28:26 +00:00
parent 9f274b1fab
commit 9004eddf41
4 changed files with 21 additions and 1 deletions

View file

@ -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: