/tags/rel-1.3.35/Examples/test-suite/python/overload_subtype_runme.py
Python | 11 lines | 7 code | 4 blank | 0 comment | 2 complexity | 054d025bcf99c4ff5f9890954cdec89e MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
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