diff options
Diffstat (limited to 'pylint/test/input/func_noerror_crash_127416.py')
-rw-r--r-- | pylint/test/input/func_noerror_crash_127416.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pylint/test/input/func_noerror_crash_127416.py b/pylint/test/input/func_noerror_crash_127416.py new file mode 100644 index 0000000..3a04363 --- /dev/null +++ b/pylint/test/input/func_noerror_crash_127416.py @@ -0,0 +1,20 @@ +# pylint: disable=C0111,R0201,C0121 +""" +FUNCTIONALITY +""" + +class Example(object): + """ + @summary: Demonstrates pylint error caused by method expecting tuple + but called method does not return tuple + """ + + def method_expects_tuple(self, obj): + meth, args = self.method_doesnot_return_tuple(obj) + result = meth(args) + return result + + def method_doesnot_return_tuple(self, obj): + # we want to lock what we have in the inventory, not what is to have + # in the future + return {'success': obj} |