/tags/rel-1-3-29/SWIG/Examples/test-suite/python/imports_runme.py
Python | 17 lines | 11 code | 5 blank | 1 comment | 1 complexity | 5aacfbf50236fa994fc3bea0fb4b9de9 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- # This is the import runtime testcase.
- import imports_b
- import imports_a
- import sys
- x = imports_b.B()
- imports_a.A.hello(x)
- a = imports_a.A()
- c = imports_b.C()
- a1 = c.get_a(c)
- a2 = c.get_a_type(c)
- if a1.hello() != a2.hello():
- raise RuntimeError