PageRenderTime 44ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/python/static_const_member_2_runme.py

#
Python | 16 lines | 13 code | 3 blank | 0 comment | 2 complexity | 3998c81f9cd98871a36182039824f869 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. from static_const_member_2 import *
  2. c = Test_int()
  3. try:
  4. a = c.forward_field
  5. a = c.current_profile
  6. a = c.RightIndex
  7. a = Test_int.backward_field
  8. a = Test_int.LeftIndex
  9. a = Test_int.cavity_flags
  10. except:
  11. raise RuntimeError
  12. if Foo.BAZ.val != 2*Foo.BAR.val:
  13. raise RuntimeError