diff options
author | Jelle Zijlstra <jelle.zijlstra@gmail.com> | 2023-05-26 12:44:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-26 12:44:23 (GMT) |
commit | 6e1eccdcce5ea3bf1ef9d326d20ef9df21262c6b (patch) | |
tree | f92b41124c2bc99e1e0557cb627004f995c0f20b /Lib/test/test_inspect.py | |
parent | 6c81d7572edbe3a5800b1128e55a2dcef03cc13c (diff) | |
download | cpython-6e1eccdcce5ea3bf1ef9d326d20ef9df21262c6b.zip cpython-6e1eccdcce5ea3bf1ef9d326d20ef9df21262c6b.tar.gz cpython-6e1eccdcce5ea3bf1ef9d326d20ef9df21262c6b.tar.bz2 |
gh-104955: Fix __release_buffer__ signature (#104956)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Diffstat (limited to 'Lib/test/test_inspect.py')
-rw-r--r-- | Lib/test/test_inspect.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_inspect.py b/Lib/test/test_inspect.py index 0590e49..ade3215 100644 --- a/Lib/test/test_inspect.py +++ b/Lib/test/test_inspect.py @@ -2766,6 +2766,11 @@ class TestSignatureObject(unittest.TestCase): # Regression test for issue #20586 test_callable(_testcapi.docstring_with_signature_but_no_doc) + # Regression test for gh-104955 + method = bytearray.__release_buffer__ + sig = test_unbound_method(method) + self.assertEqual(list(sig.parameters), ['self', 'buffer']) + @cpython_only @unittest.skipIf(MISSING_C_DOCSTRINGS, "Signature information for builtins requires docstrings") |