]> granicus.if.org Git - python/commit
Fix a couple of issues with the test_structmembersType class in _testcapimodule
authorMark Dickinson <dickinsm@gmail.com>
Sat, 3 Apr 2010 10:27:05 +0000 (10:27 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Sat, 3 Apr 2010 10:27:05 +0000 (10:27 +0000)
commitb05dc00fb7184eaf5bc78ef483a691540ebc1215
treedc4f871c0458292c74d407ff687c67a23d5de8eb
parent34c35b2788f4f764022f11a624fb08d325c31e94
Fix a couple of issues with the test_structmembersType class in _testcapimodule

 - rename to _test_structmembersType to avoid the class being automatically
   called by test_capi

 - allow space for trailing NUL in inplace_member field of all_structmembers

 - use T_STRING_INPLACE instead of T_INPLACE_STRING as keyword argument
   to _test_structmembersType initializer

 - don't attempt to initialize inplace_member field if T_STRING_INPLACE
   argument wasn't supplied.
Lib/test/test_structmembers.py
Modules/_testcapimodule.c