import source from 1.3.40
[external/swig.git] / Examples / test-suite / python / typename_runme.py
1 import typename
2 import types
3 f = typename.Foo()
4 b = typename.Bar()
5
6 x = typename.twoFoo(f)
7 if not isinstance(x,types.FloatType):
8     print "Wrong return type!"
9 y = typename.twoBar(b)
10 if not isinstance(y,types.IntType):
11     print "Wrong return type!"
12