mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
bpo-20684: Remove unused inspect._signature_get_bound_param (GH-21100)
This commit is contained in:
parent
e9f66aedf4
commit
9e746e3298
3 changed files with 2 additions and 30 deletions
|
|
@ -4014,13 +4014,6 @@ class TestBoundArguments(unittest.TestCase):
|
|||
self.assertIs(type(ba.arguments), dict)
|
||||
|
||||
class TestSignaturePrivateHelpers(unittest.TestCase):
|
||||
def test_signature_get_bound_param(self):
|
||||
getter = inspect._signature_get_bound_param
|
||||
|
||||
self.assertEqual(getter('($self)'), 'self')
|
||||
self.assertEqual(getter('($self, obj)'), 'self')
|
||||
self.assertEqual(getter('($cls, /, obj)'), 'cls')
|
||||
|
||||
def _strip_non_python_syntax(self, input,
|
||||
clean_signature, self_parameter, last_positional_only):
|
||||
computed_clean_signature, \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue