diff options
author | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2013-04-16 15:16:42 +0200 |
---|---|---|
committer | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2013-04-16 15:16:42 +0200 |
commit | 772da19f2d132517c0fbe36f881e34e247e0a4a2 (patch) | |
tree | eaec957ea0d204a0a31bd37fa63753a88bb0865f | |
parent | db61e1fea767b2864e3aca482956dd6143177224 (diff) | |
download | pylint-772da19f2d132517c0fbe36f881e34e247e0a4a2.tar.gz |
add test case for (astng fixed) #127416
-rw-r--r-- | test/input/func_noerror_crash_127416.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/input/func_noerror_crash_127416.py b/test/input/func_noerror_crash_127416.py new file mode 100644 index 0000000..3eb5c10 --- /dev/null +++ b/test/input/func_noerror_crash_127416.py @@ -0,0 +1,19 @@ +""" +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): + m, args = self.method_doesnot_return_tuple(obj) + result = m(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': ''} |