bpo-19113: Remove unused test_errors from ctypes tests (GH-28008)

This test was forever shadowed by another test method named `test_errors`.
This commit is contained in:
andrei kulakov 2021-09-08 11:28:32 -04:00 committed by GitHub
parent 2396fa6537
commit a561005761
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 9 deletions

View 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