[Python-checkins] bpo-34871: Fix two typos in test_inspect.py (GH-9698)

Miss Islington (bot) webhook-mailer at python.org
Thu Oct 4 09:15:05 EDT 2018


https://github.com/python/cpython/commit/c57eb9a336391dc22aa29e9db592fa06d7fb7101
commit: c57eb9a336391dc22aa29e9db592fa06d7fb7101
branch: master
author: Chih-Hsuan Yen <yan12125 at gmail.com>
committer: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
date: 2018-10-04T06:15:00-07:00
summary:

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

files:
M Lib/test/test_inspect.py

diff --git a/Lib/test/test_inspect.py b/Lib/test/test_inspect.py
index e523dd40636c..134b0cd0b735 100644
--- a/Lib/test/test_inspect.py
+++ b/Lib/test/test_inspect.py
@@ -851,7 +851,7 @@ def test_getfullargspec_builtin_methods(self):
     @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 @@ def test_getfullagrspec_builtin_func(self):
     @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):



More information about the Python-checkins mailing list