Commit c57eb9a3 authored by Chih-Hsuan Yen's avatar Chih-Hsuan Yen Committed by Miss Islington (bot)

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
parent 5f5a7781
...@@ -851,7 +851,7 @@ class TestClassesAndFunctions(unittest.TestCase): ...@@ -851,7 +851,7 @@ class TestClassesAndFunctions(unittest.TestCase):
@cpython_only @cpython_only
@unittest.skipIf(MISSING_C_DOCSTRINGS, @unittest.skipIf(MISSING_C_DOCSTRINGS,
"Signature information for builtins requires docstrings") "Signature information for builtins requires docstrings")
def test_getfullagrspec_builtin_func(self): def test_getfullargspec_builtin_func(self):
import _testcapi import _testcapi
builtin = _testcapi.docstring_with_signature_with_defaults builtin = _testcapi.docstring_with_signature_with_defaults
spec = inspect.getfullargspec(builtin) spec = inspect.getfullargspec(builtin)
...@@ -860,7 +860,7 @@ class TestClassesAndFunctions(unittest.TestCase): ...@@ -860,7 +860,7 @@ class TestClassesAndFunctions(unittest.TestCase):
@cpython_only @cpython_only
@unittest.skipIf(MISSING_C_DOCSTRINGS, @unittest.skipIf(MISSING_C_DOCSTRINGS,
"Signature information for builtins requires 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 import _testcapi
builtin = _testcapi.docstring_no_signature builtin = _testcapi.docstring_no_signature
with self.assertRaises(TypeError): with self.assertRaises(TypeError):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment