tests/keyword_args_bad.py | raw changeset files shortlog |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tests/keyword_args_bad.py Wed Feb 08 16:20:27 2017 +0100 1.3 @@ -0,0 +1,15 @@ 1.4 +class C: 1.5 + def f(self, x, y, z): 1.6 + return z 1.7 + 1.8 +class D: 1.9 + def f(self, a, b, c): 1.10 + return c 1.11 + 1.12 +def pqr(obj): 1.13 + return obj.f(1, 2, r=3) # no corresponding function 1.14 + 1.15 +c = C() 1.16 +d = D() 1.17 + 1.18 +print pqr(c) # should fail