summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2019-01-23 09:13:52 +0100
committerClaudiu Popa <pcmanticore@gmail.com>2019-01-23 09:13:52 +0100
commite082a2c79c5c8b998a7a2ddfb2123df849ac3902 (patch)
treec349955ff5b2f23542553a035ac3d81ed89d68ae
parent13dd2a770dd2a2aa2d35a1d607d14720a339930e (diff)
downloadpylint-git-e082a2c79c5c8b998a7a2ddfb2123df849ac3902.tar.gz
Add test case for #2588
-rw-r--r--pylint/test/functional/too_many_arguments.py17
1 files changed, 16 insertions, 1 deletions
diff --git a/pylint/test/functional/too_many_arguments.py b/pylint/test/functional/too_many_arguments.py
index 71015ab04..689745e27 100644
--- a/pylint/test/functional/too_many_arguments.py
+++ b/pylint/test/functional/too_many_arguments.py
@@ -1,4 +1,4 @@
-# pylint: disable=missing-docstring
+# pylint: disable=missing-docstring,wrong-import-position
def stupid_function(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9): # [too-many-arguments]
return arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9
@@ -15,3 +15,18 @@ class MyClass:
MyClass().mymethod2()()
+
+
+# Check a false positive does not occur
+from functools import partial
+
+
+def root_function(first, second, third):
+ return first + second + third
+
+
+def func_call():
+ """Test we don't emit a FP for https://github.com/PyCQA/pylint/issues/2588"""
+ partial_func = partial(root_function, 1, 2, 3)
+ partial_func()
+ return root_function(1, 2, 3)