tests/get_using.py | raw changeset files shortlog |
1.1 --- a/tests/get_using.py Tue Mar 21 00:15:15 2017 +0100 1.2 +++ b/tests/get_using.py Tue Mar 21 01:15:38 2017 +0100 1.3 @@ -21,6 +21,11 @@ 1.4 except UnboundMethodInvocation: 1.5 print "fn(): method is unbound" 1.6 1.7 +try: 1.8 + print f() # fails 1.9 +except UnboundMethodInvocation: 1.10 + print "f(): method is unbound" 1.11 + 1.12 d = D() 1.13 try: 1.14 fn = get_using(C.f, d)