mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-34871: Fix two typos in test_inspect.py (GH-9698)
`arg` is misspelled as `agr`. I noticed this when playing with https://bugs.python.org/issue34871 https://bugs.python.org/issue34871
This commit is contained in:
parent
5f5a7781c8
commit
c57eb9a336
1 changed files with 2 additions and 2 deletions
|
@ -851,7 +851,7 @@ class TestClassesAndFunctions(unittest.TestCase):
|
|||
@cpython_only
|
||||
@unittest.skipIf(MISSING_C_DOCSTRINGS,
|
||||
"Signature information for builtins requires docstrings")
|
||||
def test_getfullagrspec_builtin_func(self):
|
||||
def test_getfullargspec_builtin_func(self):
|
||||
import _testcapi
|
||||
builtin = _testcapi.docstring_with_signature_with_defaults
|
||||
spec = inspect.getfullargspec(builtin)
|
||||
|
@ -860,7 +860,7 @@ class TestClassesAndFunctions(unittest.TestCase):
|
|||
@cpython_only
|
||||
@unittest.skipIf(MISSING_C_DOCSTRINGS,
|
||||
"Signature information for builtins requires docstrings")
|
||||
def test_getfullagrspec_builtin_func_no_signature(self):
|
||||
def test_getfullargspec_builtin_func_no_signature(self):
|
||||
import _testcapi
|
||||
builtin = _testcapi.docstring_no_signature
|
||||
with self.assertRaises(TypeError):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue