]> git.proxmox.com Git - mirror_edk2.git/blobdiff - AppPkg/Applications/Python/Python-2.7.2/Lib/test/test_sunaudiodev.py
edk2: Remove AppPkg, StdLib, StdLibPrivateInternalFiles
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.2 / Lib / test / test_sunaudiodev.py
diff --git a/AppPkg/Applications/Python/Python-2.7.2/Lib/test/test_sunaudiodev.py b/AppPkg/Applications/Python/Python-2.7.2/Lib/test/test_sunaudiodev.py
deleted file mode 100644 (file)
index 4e19f01..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-from test.test_support import findfile, TestFailed, import_module\r
-import unittest\r
-sunaudiodev = import_module('sunaudiodev', deprecated=True)\r
-import os\r
-\r
-try:\r
-    audiodev = os.environ["AUDIODEV"]\r
-except KeyError:\r
-    audiodev = "/dev/audio"\r
-\r
-if not os.path.exists(audiodev):\r
-    raise unittest.SkipTest("no audio device found!")\r
-\r
-def play_sound_file(path):\r
-    fp = open(path, 'r')\r
-    data = fp.read()\r
-    fp.close()\r
-    try:\r
-        a = sunaudiodev.open('w')\r
-    except sunaudiodev.error, msg:\r
-        raise TestFailed, msg\r
-    else:\r
-        a.write(data)\r
-        a.close()\r
-\r
-\r
-def test_main():\r
-    play_sound_file(findfile('audiotest.au'))\r
-\r
-\r
-\r
-if __name__ == '__main__':\r
-    test_main()\r