PageRenderTime 45ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/rel-1-3-29/SWIG/Examples/test-suite/python/struct_value_runme.py

#
Python | 9 lines | 6 code | 3 blank | 0 comment | 2 complexity | d70a55df24337649d307e9f36f3482f4 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. import struct_value
  2. b = struct_value.Bar()
  3. b.a.x = 3
  4. if b.a.x != 3: raise RuntimeError
  5. b.b.x = 3
  6. if b.b.x != 3: raise RuntimeError