PageRenderTime 46ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/tags/rel-1-3-15/SWIG/Examples/test-suite/python/extend_template_ns_runme.py

#
Python | 7 lines | 6 code | 1 blank | 0 comment | 2 complexity | f56671e15274d2bf6d5d1ed1ba364200 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. from extend_template_ns import *
  2. f = Foo_One()
  3. if f.test1(37) != 37:
  4. raise RuntimeError
  5. if f.test2(42) != 42:
  6. raise RuntimeError