diff options
author | Meador Inge <meadori@gmail.com> | 2011-11-26 04:33:32 (GMT) |
---|---|---|
committer | Meador Inge <meadori@gmail.com> | 2011-11-26 04:33:32 (GMT) |
commit | 11e381310bb5f498186098855f843c2e07e7ea82 (patch) | |
tree | 70533ac58fb9900b4098819f3b3ae85726175c38 /Lib/ctypes/test | |
parent | 4558bad7d64a7599b46fb56ea2df52319437f3a0 (diff) | |
download | cpython-11e381310bb5f498186098855f843c2e07e7ea82.zip cpython-11e381310bb5f498186098855f843c2e07e7ea82.tar.gz cpython-11e381310bb5f498186098855f843c2e07e7ea82.tar.bz2 |
Issue #13380: add an internal function for resetting the ctypes caches
Diffstat (limited to 'Lib/ctypes/test')
-rw-r--r-- | Lib/ctypes/test/test_as_parameter.py | 1 | ||||
-rw-r--r-- | Lib/ctypes/test/test_functions.py | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/Lib/ctypes/test/test_as_parameter.py b/Lib/ctypes/test/test_as_parameter.py index 475d595..2657a66 100644 --- a/Lib/ctypes/test/test_as_parameter.py +++ b/Lib/ctypes/test/test_as_parameter.py @@ -74,6 +74,7 @@ class BasicWrapTestCase(unittest.TestCase): def test_callbacks(self): f = dll._testfunc_callback_i_if f.restype = c_int + f.argtypes = None MyCallback = CFUNCTYPE(c_int, c_int) diff --git a/Lib/ctypes/test/test_functions.py b/Lib/ctypes/test/test_functions.py index f70cacd..45d74ec 100644 --- a/Lib/ctypes/test/test_functions.py +++ b/Lib/ctypes/test/test_functions.py @@ -250,6 +250,7 @@ class FunctionTestCase(unittest.TestCase): def test_callbacks(self): f = dll._testfunc_callback_i_if f.restype = c_int + f.argtypes = None MyCallback = CFUNCTYPE(c_int, c_int) |