# HG changeset patch # User Paul Boddie # Date 1480173381 -3600 # Node ID 8489103f181a030da9ddc04c2bf65e3a9671ed50 # Parent 3914ca979652b7d8a116f9beba1466c5f3d5373d Added another failure test. diff -r 3914ca979652 -r 8489103f181a tests/methods_unbound.py --- a/tests/methods_unbound.py Sat Nov 26 13:33:49 2016 +0100 +++ b/tests/methods_unbound.py Sat Nov 26 16:16:21 2016 +0100 @@ -77,6 +77,12 @@ print "f(C, 1): Unbound method is not callable." print f(c, 1) # 1 + +try: + print f(d, 1) # should fail with an error caused by a guard +except TypeError: + print "f(d, 1): d is not a suitable argument." + fn = f(C, 0) try: