summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_inspect.py
diff options
context:
space:
mode:
authorJelle Zijlstra <jelle.zijlstra@gmail.com>2023-05-26 12:44:23 (GMT)
committerGitHub <noreply@github.com>2023-05-26 12:44:23 (GMT)
commit6e1eccdcce5ea3bf1ef9d326d20ef9df21262c6b (patch)
treef92b41124c2bc99e1e0557cb627004f995c0f20b /Lib/test/test_inspect.py
parent6c81d7572edbe3a5800b1128e55a2dcef03cc13c (diff)
downloadcpython-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.py5
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")