Skip to content

Commit a561005

Browse files
authored
bpo-19113: Remove unused test_errors from ctypes tests (GH-28008)
This test was forever shadowed by another test method named `test_errors`.
1 parent 2396fa6 commit a561005

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

Lib/ctypes/test/test_functions.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -209,15 +209,6 @@ def test_pointers(self):
209209
result = f(byref(c_int(99)))
210210
self.assertNotEqual(result.contents, 99)
211211

212-
def test_errors(self):
213-
f = dll._testfunc_p_p
214-
f.restype = c_int
215-
216-
class X(Structure):
217-
_fields_ = [("y", c_int)]
218-
219-
self.assertRaises(TypeError, f, X()) #cannot convert parameter
220-
221212
################################################################
222213
def test_shorts(self):
223214
f = dll._testfunc_callback_i_if

0 commit comments

Comments
 (0)