diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2015-04-13 23:22:35 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2015-04-13 23:22:35 (GMT) |
commit | 8ef887ce47421e0e3e9ec0c95735990bb0594ffe (patch) | |
tree | 3a547c2984fd7086cc1d7a7840734bf7ae94baff /Lib/test/test_inspect.py | |
parent | a6cc551502aac1fd011009abe40686f4647ba6b0 (diff) | |
download | cpython-8ef887ce47421e0e3e9ec0c95735990bb0594ffe.zip cpython-8ef887ce47421e0e3e9ec0c95735990bb0594ffe.tar.gz cpython-8ef887ce47421e0e3e9ec0c95735990bb0594ffe.tar.bz2 |
Issue #20586: Argument Clinic now ensures signatures on functions without docstrings.
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 cd051c4..76f2b47 100644 --- a/Lib/test/test_inspect.py +++ b/Lib/test/test_inspect.py @@ -1864,6 +1864,9 @@ class TestSignatureObject(unittest.TestCase): test_unbound_method(dict.__delitem__) test_unbound_method(property.__delete__) + # Regression test for issue #20586 + test_callable(_testcapi.docstring_with_signature_but_no_doc) + @cpython_only @unittest.skipIf(MISSING_C_DOCSTRINGS, "Signature information for builtins requires docstrings") |