swig/Examples/test-suite/python/smart_pointer_multi_runme.py
Jon Schlueter b77f3afafb autopep8 cleanup of Examples/test-suite/python
automated cleanup of python pep8 whitespace compliance
2015-05-08 21:35:52 -04:00

14 lines
180 B
Python

from smart_pointer_multi import *
f = Foo()
b = Bar(f)
s = Spam(b)
g = Grok(b)
s.x = 3
if s.getx() != 3:
raise RuntimeError
g.x = 4
if g.getx() != 4:
raise RuntimeError