diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2014-02-21 06:32:42 (GMT) |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2014-02-21 06:32:42 (GMT) |
commit | d224b6a796a8934b85b9a959c7a9e4b31d2bb428 (patch) | |
tree | 3037ae3f93fcc9e461efd1c744a3ff0e33699e23 /Lib/test/test_inspect.py | |
parent | b0b75a192215e87214f9f2c77d6839d2f83a5ea8 (diff) | |
download | cpython-d224b6a796a8934b85b9a959c7a9e4b31d2bb428.zip cpython-d224b6a796a8934b85b9a959c7a9e4b31d2bb428.tar.gz cpython-d224b6a796a8934b85b9a959c7a9e4b31d2bb428.tar.bz2 |
inspect: Fix getfullargspec to support builtin module-level functions. Issue #20711
Diffstat (limited to 'Lib/test/test_inspect.py')
-rw-r--r-- | Lib/test/test_inspect.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_inspect.py b/Lib/test/test_inspect.py index 711d2a3..95c1b32 100644 --- a/Lib/test/test_inspect.py +++ b/Lib/test/test_inspect.py @@ -643,6 +643,13 @@ class TestClassesAndFunctions(unittest.TestCase): self.assertFullArgSpecEquals(_pickle.Pickler(io.BytesIO()).dump, args_e=['self', 'obj'], formatted='(self, obj)') + self.assertFullArgSpecEquals( + os.stat, + args_e=['path'], + kwonlyargs_e=['dir_fd', 'follow_symlinks'], + kwonlydefaults_e={'dir_fd': None, 'follow_symlinks': True}, + formatted='(path, *, dir_fd=None, follow_symlinks=True)') + @cpython_only @unittest.skipIf(MISSING_C_DOCSTRINGS, "Signature information for builtins requires docstrings") |