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 /Modules/_testcapimodule.c | |
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 'Modules/_testcapimodule.c')
-rw-r--r-- | Modules/_testcapimodule.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index d6eb6d4..d77d1db 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -3083,6 +3083,12 @@ PyDoc_STRVAR(docstring_with_signature, "This docstring has a valid signature." ); +PyDoc_STRVAR(docstring_with_signature_but_no_doc, +"docstring_with_signature_but_no_doc($module, /, sig)\n" +"--\n" +"\n" +); + PyDoc_STRVAR(docstring_with_signature_and_extra_newlines, "docstring_with_signature_and_extra_newlines($module, /, parameter)\n" "--\n" @@ -3635,6 +3641,9 @@ static PyMethodDef TestMethods[] = { {"docstring_with_signature", (PyCFunction)test_with_docstring, METH_NOARGS, docstring_with_signature}, + {"docstring_with_signature_but_no_doc", + (PyCFunction)test_with_docstring, METH_NOARGS, + docstring_with_signature_but_no_doc}, {"docstring_with_signature_and_extra_newlines", (PyCFunction)test_with_docstring, METH_NOARGS, docstring_with_signature_and_extra_newlines}, |