summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2008-01-28 08:44:13 (GMT)
committerThomas Heller <theller@ctypes.org>2008-01-28 08:44:13 (GMT)
commit99120c4f7ea621ba2386c11d1300da335853dd68 (patch)
treeecc8d49017ac2fa6056b6a09668c7c86acb9e05a /Lib
parentd7e1b2bd17cee31bb581a71fff20101be0b34bc6 (diff)
downloadcpython-99120c4f7ea621ba2386c11d1300da335853dd68.zip
cpython-99120c4f7ea621ba2386c11d1300da335853dd68.tar.gz
cpython-99120c4f7ea621ba2386c11d1300da335853dd68.tar.bz2
Revert rev. 59925, it breaks comtypes (I need to further examine this).
Diffstat (limited to 'Lib')
-rw-r--r--Lib/ctypes/test/test_funcptr.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/Lib/ctypes/test/test_funcptr.py b/Lib/ctypes/test/test_funcptr.py
index 92bf89b..7ea873f 100644
--- a/Lib/ctypes/test/test_funcptr.py
+++ b/Lib/ctypes/test/test_funcptr.py
@@ -123,11 +123,5 @@ class CFuncPtrTestCase(unittest.TestCase):
self.failUnlessEqual(strtok(None, "\n"), "c")
self.failUnlessEqual(strtok(None, "\n"), None)
- def test_NULL_funcptr(self):
- tp = CFUNCTYPE(c_int)
- func = tp() # NULL function pointer
- # raise a ValueError when we try to call it
- self.assertRaises(ValueError, func)
-
if __name__ == '__main__':
unittest.main()