From: Yury Selivanov Date: Sat, 1 Feb 2014 18:49:29 +0000 (-0500) Subject: inspect.tests: Fix tests to work on python built with '--without-doc-strings' #20471 X-Git-Tag: v3.4.0rc1~131 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=145dff856713d5db6984e2cd888f5f2e5a9904bc;p=thirdparty%2FPython%2Fcpython.git inspect.tests: Fix tests to work on python built with '--without-doc-strings' #20471 --- diff --git a/Lib/test/test_inspect.py b/Lib/test/test_inspect.py index e42545de22d9..efed714a26c3 100644 --- a/Lib/test/test_inspect.py +++ b/Lib/test/test_inspect.py @@ -2193,6 +2193,9 @@ class TestSignatureObject(unittest.TestCase): ('bar', 2, ..., "keyword_only")), ...)) + @unittest.skipIf(MISSING_C_DOCSTRINGS, + "Signature information for builtins requires docstrings") + def test_signature_on_class_without_init(self): # Test classes without user-defined __init__ or __new__ class C: pass self.assertEqual(str(inspect.signature(C)), '()')