diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2014-02-01 18:49:29 (GMT) |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2014-02-01 18:49:29 (GMT) |
commit | 145dff856713d5db6984e2cd888f5f2e5a9904bc (patch) | |
tree | ff5b4e4087ef456071524399a798b6147d925d11 /Lib/test/test_inspect.py | |
parent | 8c561b52b2ab52b419c506a28d72d256f5c933cc (diff) | |
download | cpython-145dff856713d5db6984e2cd888f5f2e5a9904bc.zip cpython-145dff856713d5db6984e2cd888f5f2e5a9904bc.tar.gz cpython-145dff856713d5db6984e2cd888f5f2e5a9904bc.tar.bz2 |
inspect.tests: Fix tests to work on python built with '--without-doc-strings' #20471
Diffstat (limited to 'Lib/test/test_inspect.py')
-rw-r--r-- | Lib/test/test_inspect.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_inspect.py b/Lib/test/test_inspect.py index e42545d..efed714 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)), '()') |