mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +00:00
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:
parent
2396fa6537
commit
a561005761
1 changed files with 0 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue