]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-19113: Remove unused test_errors from ctypes tests (GH-28008)
authorandrei kulakov <andrei.avk@gmail.com>
Wed, 8 Sep 2021 15:28:32 +0000 (11:28 -0400)
committerGitHub <noreply@github.com>
Wed, 8 Sep 2021 15:28:32 +0000 (17:28 +0200)
This test was forever shadowed by another test method named `test_errors`.

Lib/ctypes/test/test_functions.py

index d3c6536f2766a768478cfb8a56b503a4ff5de34c..c5456ba107ae3a2a1f41e2f3252c5c8310efbc96 100644 (file)
@@ -209,15 +209,6 @@ class FunctionTestCase(unittest.TestCase):
         result = f(byref(c_int(99)))
         self.assertNotEqual(result.contents, 99)
 
-    def test_errors(self):
-        f = dll._testfunc_p_p
-        f.restype = c_int
-
-        class X(Structure):
-            _fields_ = [("y", c_int)]
-
-        self.assertRaises(TypeError, f, X()) #cannot convert parameter
-
     ################################################################
     def test_shorts(self):
         f = dll._testfunc_callback_i_if