A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://svn.python.org/projects/python/branches/r22b1-branch/Lib/test/test_sunaudiodev.py below:

from test_support import verbose, findfile, TestFailed, TestSkipped import sunaudiodev import os try: audiodev = os.environ["AUDIODEV"] except KeyError: audiodev = "/dev/audio" if not os.path.exists(audiodev): raise TestSkipped("no audio device found!") def play_sound_file(path): fp = open(path, 'r') data = fp.read() fp.close() try: a = sunaudiodev.open('w') except sunaudiodev.error, msg: raise TestFailed, msg else: a.write(data) a.close() def test(): play_sound_file(findfile('audiotest.au')) test()

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4