mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Merged revisions 74921 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r74921 | thomas.heller | 2009-09-18 22:05:44 +0200 (Fr, 18 Sep 2009) | 3 lines Issue #4606: Passing 'None' if ctypes argtype is set to POINTER(...) does now always result in NULL. ........
This commit is contained in:
parent
d7cb1b9119
commit
69b639f946
4 changed files with 10 additions and 3 deletions
|
@ -97,7 +97,7 @@ class SimpleTypesTestCase(unittest.TestCase):
|
|||
self.assertEqual(x.contents.value, 42)
|
||||
self.assertEqual(LPINT(c_int(42)).contents.value, 42)
|
||||
|
||||
self.assertEqual(LPINT.from_param(None), 0)
|
||||
self.assertEqual(LPINT.from_param(None), None)
|
||||
|
||||
if c_int != c_long:
|
||||
self.assertRaises(TypeError, LPINT.from_param, pointer(c_long(42)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue