# HG changeset patch # User Paul Boddie # Date 1219790714 -7200 # Node ID 9fdd2c13dbac42b534940130739aff921a3902ab # Parent eb01c567dfeb139173c00a100a058afcfaf68596 Added another test of method invocation, explicitly testing instance/class compatibility for supplied contexts. diff -r eb01c567dfeb -r 9fdd2c13dbac tests/call_method3.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/call_method3.py Wed Aug 27 00:45:14 2008 +0200 @@ -0,0 +1,12 @@ +#!/usr/bin/env python + +class C: + def f(self, a, b, c): + pass + +c = C() + +f = C.f +f(c, 1, 2, 3) # test self argument + +# vim: tabstop=4 expandtab shiftwidth=4