]> git.proxmox.com Git - mirror_edk2.git/blobdiff - AppPkg/Applications/Python/Python-2.7.2/Lib/test/test_call.py
edk2: Remove AppPkg, StdLib, StdLibPrivateInternalFiles
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.2 / Lib / test / test_call.py
diff --git a/AppPkg/Applications/Python/Python-2.7.2/Lib/test/test_call.py b/AppPkg/Applications/Python/Python-2.7.2/Lib/test/test_call.py
deleted file mode 100644 (file)
index b21b448..0000000
+++ /dev/null
@@ -1,134 +0,0 @@
-import unittest\r
-from test import test_support\r
-\r
-# The test cases here cover several paths through the function calling\r
-# code.  They depend on the METH_XXX flag that is used to define a C\r
-# function, which can't be verified from Python.  If the METH_XXX decl\r
-# for a C function changes, these tests may not cover the right paths.\r
-\r
-class CFunctionCalls(unittest.TestCase):\r
-\r
-    def test_varargs0(self):\r
-        self.assertRaises(TypeError, {}.has_key)\r
-\r
-    def test_varargs1(self):\r
-        with test_support.check_py3k_warnings():\r
-            {}.has_key(0)\r
-\r
-    def test_varargs2(self):\r
-        self.assertRaises(TypeError, {}.has_key, 0, 1)\r
-\r
-    def test_varargs0_ext(self):\r
-        try:\r
-            {}.has_key(*())\r
-        except TypeError:\r
-            pass\r
-\r
-    def test_varargs1_ext(self):\r
-        with test_support.check_py3k_warnings():\r
-            {}.has_key(*(0,))\r
-\r
-    def test_varargs2_ext(self):\r
-        try:\r
-            with test_support.check_py3k_warnings():\r
-                {}.has_key(*(1, 2))\r
-        except TypeError:\r
-            pass\r
-        else:\r
-            raise RuntimeError\r
-\r
-    def test_varargs0_kw(self):\r
-        self.assertRaises(TypeError, {}.has_key, x=2)\r
-\r
-    def test_varargs1_kw(self):\r
-        self.assertRaises(TypeError, {}.has_key, x=2)\r
-\r
-    def test_varargs2_kw(self):\r
-        self.assertRaises(TypeError, {}.has_key, x=2, y=2)\r
-\r
-    def test_oldargs0_0(self):\r
-        {}.keys()\r
-\r
-    def test_oldargs0_1(self):\r
-        self.assertRaises(TypeError, {}.keys, 0)\r
-\r
-    def test_oldargs0_2(self):\r
-        self.assertRaises(TypeError, {}.keys, 0, 1)\r
-\r
-    def test_oldargs0_0_ext(self):\r
-        {}.keys(*())\r
-\r
-    def test_oldargs0_1_ext(self):\r
-        try:\r
-            {}.keys(*(0,))\r
-        except TypeError:\r
-            pass\r
-        else:\r
-            raise RuntimeError\r
-\r
-    def test_oldargs0_2_ext(self):\r
-        try:\r
-            {}.keys(*(1, 2))\r
-        except TypeError:\r
-            pass\r
-        else:\r
-            raise RuntimeError\r
-\r
-    def test_oldargs0_0_kw(self):\r
-        try:\r
-            {}.keys(x=2)\r
-        except TypeError:\r
-            pass\r
-        else:\r
-            raise RuntimeError\r
-\r
-    def test_oldargs0_1_kw(self):\r
-        self.assertRaises(TypeError, {}.keys, x=2)\r
-\r
-    def test_oldargs0_2_kw(self):\r
-        self.assertRaises(TypeError, {}.keys, x=2, y=2)\r
-\r
-    def test_oldargs1_0(self):\r
-        self.assertRaises(TypeError, [].count)\r
-\r
-    def test_oldargs1_1(self):\r
-        [].count(1)\r
-\r
-    def test_oldargs1_2(self):\r
-        self.assertRaises(TypeError, [].count, 1, 2)\r
-\r
-    def test_oldargs1_0_ext(self):\r
-        try:\r
-            [].count(*())\r
-        except TypeError:\r
-            pass\r
-        else:\r
-            raise RuntimeError\r
-\r
-    def test_oldargs1_1_ext(self):\r
-        [].count(*(1,))\r
-\r
-    def test_oldargs1_2_ext(self):\r
-        try:\r
-            [].count(*(1, 2))\r
-        except TypeError:\r
-            pass\r
-        else:\r
-            raise RuntimeError\r
-\r
-    def test_oldargs1_0_kw(self):\r
-        self.assertRaises(TypeError, [].count, x=2)\r
-\r
-    def test_oldargs1_1_kw(self):\r
-        self.assertRaises(TypeError, [].count, {}, x=2)\r
-\r
-    def test_oldargs1_2_kw(self):\r
-        self.assertRaises(TypeError, [].count, x=2, y=2)\r
-\r
-\r
-def test_main():\r
-    test_support.run_unittest(CFunctionCalls)\r
-\r
-\r
-if __name__ == "__main__":\r
-    test_main()\r