summaryrefslogtreecommitdiffstats
path: root/Lib/ctypes/test
diff options
context:
space:
mode:
authorMeador Inge <meadori@gmail.com>2011-11-26 04:33:32 (GMT)
committerMeador Inge <meadori@gmail.com>2011-11-26 04:33:32 (GMT)
commit11e381310bb5f498186098855f843c2e07e7ea82 (patch)
tree70533ac58fb9900b4098819f3b3ae85726175c38 /Lib/ctypes/test
parent4558bad7d64a7599b46fb56ea2df52319437f3a0 (diff)
downloadcpython-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.py1
-rw-r--r--Lib/ctypes/test/test_functions.py1
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)