diff options
author | andrei kulakov <andrei.avk@gmail.com> | 2021-09-08 15:28:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-08 15:28:32 (GMT) |
commit | a5610057615779ca6fc75d9e006d2fae644a94d3 (patch) | |
tree | 1ddfd723f92bd060adc74624e482ad14d1af0f45 | |
parent | 2396fa6537d79554ac694dbd2b0b30eeb3476c80 (diff) | |
download | cpython-a5610057615779ca6fc75d9e006d2fae644a94d3.zip cpython-a5610057615779ca6fc75d9e006d2fae644a94d3.tar.gz cpython-a5610057615779ca6fc75d9e006d2fae644a94d3.tar.bz2 |
bpo-19113: Remove unused test_errors from ctypes tests (GH-28008)
This test was forever shadowed by another test method named `test_errors`.
-rw-r--r-- | Lib/ctypes/test/test_functions.py | 9 |
1 files changed, 0 insertions, 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 |