]> git.proxmox.com Git - mirror_edk2.git/blobdiff - AppPkg/Applications/Python/Python-2.7.2/Lib/test/test_frozen.py
edk2: Remove AppPkg, StdLib, StdLibPrivateInternalFiles
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.2 / Lib / test / test_frozen.py
diff --git a/AppPkg/Applications/Python/Python-2.7.2/Lib/test/test_frozen.py b/AppPkg/Applications/Python/Python-2.7.2/Lib/test/test_frozen.py
deleted file mode 100644 (file)
index 4fa4fcd..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-# Test the frozen module defined in frozen.c.\r
-\r
-from test.test_support import captured_stdout, run_unittest\r
-import unittest\r
-import sys\r
-\r
-class FrozenTests(unittest.TestCase):\r
-    def test_frozen(self):\r
-\r
-        with captured_stdout() as stdout:\r
-            try:\r
-                import __hello__\r
-            except ImportError, x:\r
-                self.fail("import __hello__ failed:" + str(x))\r
-\r
-            try:\r
-                import __phello__\r
-            except ImportError, x:\r
-                self.fail("import __phello__ failed:" + str(x))\r
-\r
-            try:\r
-                import __phello__.spam\r
-            except ImportError, x:\r
-                self.fail("import __phello__.spam failed:" + str(x))\r
-\r
-            try:\r
-                import __phello__.foo\r
-            except ImportError:\r
-                pass\r
-            else:\r
-                self.fail("import __phello__.foo should have failed")\r
-\r
-        self.assertEqual(stdout.getvalue(),\r
-                         'Hello world...\nHello world...\nHello world...\n')\r
-\r
-        del sys.modules['__hello__']\r
-        del sys.modules['__phello__']\r
-        del sys.modules['__phello__.spam']\r
-\r
-\r
-def test_main():\r
-    run_unittest(FrozenTests)\r
-\r
-\r
-\r
-if __name__ == '__main__':\r
-    test_main()\r