]> git.proxmox.com Git - mirror_edk2.git/blobdiff - AppPkg/Applications/Python/Python-2.7.2/Lib/test/test_openpty.py
edk2: Remove AppPkg, StdLib, StdLibPrivateInternalFiles
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.2 / Lib / test / test_openpty.py
diff --git a/AppPkg/Applications/Python/Python-2.7.2/Lib/test/test_openpty.py b/AppPkg/Applications/Python/Python-2.7.2/Lib/test/test_openpty.py
deleted file mode 100644 (file)
index b28199b..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-# Test to see if openpty works. (But don't worry if it isn't available.)\r
-\r
-import os, unittest\r
-from test.test_support import run_unittest\r
-\r
-if not hasattr(os, "openpty"):\r
-    raise unittest.SkipTest, "No openpty() available."\r
-\r
-\r
-class OpenptyTest(unittest.TestCase):\r
-    def test(self):\r
-        master, slave = os.openpty()\r
-        if not os.isatty(slave):\r
-            self.fail("Slave-end of pty is not a terminal.")\r
-\r
-        os.write(slave, 'Ping!')\r
-        self.assertEqual(os.read(master, 1024), 'Ping!')\r
-\r
-def test_main():\r
-    run_unittest(OpenptyTest)\r
-\r
-if __name__ == '__main__':\r
-    test_main()\r