From a5610057615779ca6fc75d9e006d2fae644a94d3 Mon Sep 17 00:00:00 2001 From: andrei kulakov Date: Wed, 8 Sep 2021 11:28:32 -0400 Subject: bpo-19113: Remove unused test_errors from ctypes tests (GH-28008) This test was forever shadowed by another test method named `test_errors`. --- Lib/ctypes/test/test_functions.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Lib/ctypes/test/test_functions.py b/Lib/ctypes/test/test_functions.py index d3c6536..c5456ba 100644 --- a/Lib/ctypes/test/test_functions.py +++ b/Lib/ctypes/test/test_functions.py @@ -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 -- cgit v0.12