/trunk/Examples/test-suite/python/overload_subtype_runme.py
Python | 11 lines | 7 code | 4 blank | 0 comment | 2 complexity | 054d025bcf99c4ff5f9890954cdec89e MD5 | raw file
1from overload_subtype import * 2 3f = Foo() 4b = Bar() 5 6if spam(f) != 1: 7 raise RuntimeError, "foo" 8 9if spam(b) != 2: 10 raise RuntimeError, "bar" 11