blob: aac936fde1514a11304ed2c199cbb68f3398fa93 [file] [log] [blame]
import typename
import types
f = typename.Foo()
b = typename.Bar()
x = typename.twoFoo(f)
if not isinstance(x, types.FloatType):
raise RuntimeError, "Wrong return type (FloatType) !"
y = typename.twoBar(b)
if not isinstance(y, types.IntType):
raise RuntimeError, "Wrong return type (IntType)!"