mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
[3.12] gh-81682: Fix test failures when CPython is built without docstrings (GH-113410) (GH-113429)
(cherry picked from commit 4e5b27e6a3
)
This commit is contained in:
parent
fee2bc15f9
commit
fc4d2c3dc6
12 changed files with 43 additions and 16 deletions
|
@ -462,6 +462,8 @@ class CAPITest(unittest.TestCase):
|
|||
del L
|
||||
self.assertEqual(PyList.num, 0)
|
||||
|
||||
@unittest.skipIf(MISSING_C_DOCSTRINGS,
|
||||
"Signature information for builtins requires docstrings")
|
||||
def test_heap_ctype_doc_and_text_signature(self):
|
||||
self.assertEqual(_testcapi.HeapDocCType.__doc__, "somedoc")
|
||||
self.assertEqual(_testcapi.HeapDocCType.__text_signature__, "(arg1, arg2)")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue