summaryrefslogtreecommitdiff
path: root/Lib/test/test_inspect.py
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2021-05-22 07:51:43 -0700
committerGitHub <noreply@github.com>2021-05-22 15:51:43 +0100
commit9e746e3298da36f4e8df0495f91a720f3e54ea33 (patch)
treeb0c7123d7f83d3699456ce2b82c478eb8689ae3f /Lib/test/test_inspect.py
parente9f66aedf44ccc3be27975cfb070a44ce6a6bd13 (diff)
downloadcpython-git-9e746e3298da36f4e8df0495f91a720f3e54ea33.tar.gz
bpo-20684: Remove unused inspect._signature_get_bound_param (GH-21100)
Diffstat (limited to 'Lib/test/test_inspect.py')
-rw-r--r--Lib/test/test_inspect.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/Lib/test/test_inspect.py b/Lib/test/test_inspect.py
index 0ab65307cd..69f17f2477 100644
--- a/Lib/test/test_inspect.py
+++ b/Lib/test/test_inspect.py
@@ -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, \