summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChih-Hsuan Yen <yan12125@gmail.com>2018-10-04 13:15:00 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-10-04 13:15:00 (GMT)
commitc57eb9a336391dc22aa29e9db592fa06d7fb7101 (patch)
tree1775bb4194493f74d1dbb8b09f765f7d20ffcf9e
parent5f5a7781c8bf7bcc476d3e05d980711be3920724 (diff)
downloadcpython-c57eb9a336391dc22aa29e9db592fa06d7fb7101.zip
cpython-c57eb9a336391dc22aa29e9db592fa06d7fb7101.tar.gz
cpython-c57eb9a336391dc22aa29e9db592fa06d7fb7101.tar.bz2
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
-rw-r--r--Lib/test/test_inspect.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_inspect.py b/Lib/test/test_inspect.py
index e523dd4..134b0cd 100644
--- a/Lib/test/test_inspect.py
+++ b/Lib/test/test_inspect.py
@@ -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):