PageRenderTime 37ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/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
  1. # This is the import runtime testcase.
  2. import imports_b
  3. import imports_a
  4. import sys
  5. x = imports_b.B()
  6. imports_a.A.hello(x)
  7. a = imports_a.A()
  8. c = imports_b.C()
  9. a1 = c.get_a(c)
  10. a2 = c.get_a_type(c)
  11. if a1.hello() != a2.hello():
  12. raise RuntimeError