mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Fix inspect.signature tests for builtins when docstrings are compiled out.
This commit is contained in:
parent
3b7b1e533e
commit
fcafe43320
2 changed files with 9 additions and 1 deletions
|
@ -9,6 +9,7 @@ import sys
|
|||
import time
|
||||
import unittest
|
||||
from test import support
|
||||
from test.support import MISSING_C_DOCSTRINGS
|
||||
try:
|
||||
import _posixsubprocess
|
||||
except ImportError:
|
||||
|
@ -109,6 +110,8 @@ class CAPITest(unittest.TestCase):
|
|||
self.assertRaises(TypeError, _posixsubprocess.fork_exec,
|
||||
Z(),[b'1'],3,[1, 2],5,6,7,8,9,10,11,12,13,14,15,16,17)
|
||||
|
||||
@unittest.skipIf(MISSING_C_DOCSTRINGS,
|
||||
"Signature information for builtins requires docstrings")
|
||||
def test_docstring_signature_parsing(self):
|
||||
|
||||
self.assertEqual(_testcapi.no_docstring.__doc__, None)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue