mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
gh-104955: Fix __release_buffer__ signature (#104956)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
This commit is contained in:
parent
6c81d7572e
commit
6e1eccdcce
3 changed files with 8 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue