summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_capi.py
diff options
context:
space:
mode:
authorLarry Hastings <larry@hastings.org>2013-11-24 01:35:48 (GMT)
committerLarry Hastings <larry@hastings.org>2013-11-24 01:35:48 (GMT)
commitfcafe433202300bfba33bfe16c7b48489fca59ac (patch)
treed5e799958069e47d149efc6b71d1d8ab1d2d2260 /Lib/test/test_capi.py
parent3b7b1e533e640f4b0427d61fa442111e6bf16fda (diff)
downloadcpython-fcafe433202300bfba33bfe16c7b48489fca59ac.zip
cpython-fcafe433202300bfba33bfe16c7b48489fca59ac.tar.gz
cpython-fcafe433202300bfba33bfe16c7b48489fca59ac.tar.bz2
Fix inspect.signature tests for builtins when docstrings are compiled out.
Diffstat (limited to 'Lib/test/test_capi.py')
-rw-r--r--Lib/test/test_capi.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py
index 6f75b77..22c8eb0 100644
--- a/Lib/test/test_capi.py
+++ b/Lib/test/test_capi.py
@@ -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)