mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-41832: PyType_FromModuleAndSpec() now accepts NULL tp_doc (GH-23123)
This commit is contained in:
parent
803187796f
commit
88c2cfd9ff
7 changed files with 44 additions and 4 deletions
|
@ -405,6 +405,9 @@ class CAPITest(unittest.TestCase):
|
|||
self.assertEqual(_testcapi.HeapDocCType.__doc__, "somedoc")
|
||||
self.assertEqual(_testcapi.HeapDocCType.__text_signature__, "(arg1, arg2)")
|
||||
|
||||
def test_null_type_doc(self):
|
||||
self.assertEqual(_testcapi.NullTpDocType.__doc__, None)
|
||||
|
||||
def test_subclass_of_heap_gc_ctype_with_tpdealloc_decrefs_once(self):
|
||||
class HeapGcCTypeSubclass(_testcapi.HeapGcCType):
|
||||
def __init__(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue